当我尝试使用 Python 和 Cython 的包装器为 Python 安装 ta-lib(最初用 C 编码的技术分析库)时,我收到一条错误消息,提示“必须使用启用了 unicode 的 python”。我已经尝试谷歌搜索无济于事。
这是完整的错误消息:
C:\Python27\Lib\site-packages\ta-lib-master>python setup.py install
running install
running build
running build_ext
skipping 'talib.c' Cython extension (up-to-date)
building 'talib' extension
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox
/MD /W3 /GS- /DNDEBUG -IC:\Python27\lib\site-packages\numpy\core\include -Ic:\ms
ys\1.0\local\include -IC:\Python27\include -IC:\Python27\PC /Tctalib.c /Fobuild\
temp.win32-2.7\Release\talib.obj
talib.c
c:\python27\lib\site-packages\numpy\core\include\numpy\npy_common.h(85) : fatal
error C1189: #error : Must use Python with unicode enabled.
error: command '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.ex
e"' failed with exit status 2