我正在尝试为64位Python构建talib。我有64位Python安装(使用Anaconda 64位分发)。我安装了Microsoft SDK并使用以下命令将环境设置为x64 “C:\ Program Files \ Microsoft SDKs \ Windows \ v7.1 \ Bin \ SetEnv.cmd”/ x64 但仍然没有成功。过去两天我一直在努力解决这个问题。请帮忙。
Setting SDK environment relative to C:\Program Files\Microsoft SDKs\Windows\v7.1
\.
Targeting Windows 7 x64 Debug
C:\ABC\Python\pkgs\ta-lib\ta-lib-TA_Lib-0.4.7\ta-lib-TA_Lib-0.4.7>C:\Anaconda64\
python.exe setup.py build --compiler msvc
running build
running build_py
running build_ext
skipping 'talib\common.c' Cython extension (up-to-date)
building 'talib.common' extension
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\amd64\cl.exe /c /nolo
go /Ox /MD /W3 /GS- /DNDEBUG -IC:\Anaconda64\lib\site-packages\numpy\core\includ
e -Ic:\ta-lib\c\include -IC:\Anaconda64\include -IC:\Anaconda64\PC /Tctalib\comm
on.c /Fobuild\temp.win-amd64-2.7\Release\talib\common.obj
common.c
C:\Anaconda64\include\pyconfig.h(68) : fatal error C1083: Cannot open include fi
le: 'io.h': No such file or directory
error: command 'cl.exe' failed with exit status 2
C:\ABC\Python\pkgs\ta-lib\ta-lib-TA_Lib-0.4.7\ta-lib-TA_Lib-0.4.7>
答案 0 :(得分:0)
从http://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib下载TA_Lib-0.4.10-cp27-cp27m-win_amd64.whl。 并使用命令 点安装TA_Lib-0.4.10-cp27-cp27m-win_amd64.whl