在Win 7 64位下使用VC ++编译器编译Python错误

时间:2016-08-21 19:59:08

标签: python c++ cython distutils

我为devs(scikit)下载了一个软件包,在构建时,我做了:

1) Git download
2) VC++ for Python: https://blogs.msdn.microsoft.com/pythonengineering/2016/04/11/unable-to-find-vcvarsall-bat/#comment-515
3) Change the Path for compiler
4) python setup.py build
Win 7 64bits, Python 2.7, Anaconda

我有这个错误:

building 'sklearn.__check_build._check_build' extension

compiling C sources

cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -ID:\_devs\Python01\Anaconda2\lib\si
te-packages\numpy\core\include -ID:\_devs\Python01\Anaconda2\lib\site-packages\n
umpy\core\include -ID:\_devs\Python01\Anaconda2\include -ID:\_devs\Python01\Anac
onda2\PC /Tc_check_build.c /Fobuild\temp.win-amd64-2.7\Release\_check_build.obj


Found executable C:\Users\asus1\AppData\Local\Programs\Common\Microsoft\Visual C
++ for Python\9.0\VC\Bin\amd64\cl.exe


_check_build.c
c1 : fatal error C1083: Cannot open source file: '_check_build.c': No such file
or directory

我查看过去的问题,找不到任何事情。

0 个答案:

没有答案
相关问题