Datei Ich möchte auf Windows 7Fehler beim Kompilieren ein Cython
python mySetup.py build_ext --inplace
meine Cython Datei kompilieren, aber einen Fehler bekommen
running build_ext building 'sumrange_Cython' extension C:\Program Files (x86)\Microsoft Visual Studio\Shared\14.0\VC\bin\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\Artem\AppData\Local\Programs\Python\Python36-32\include -IC:\Users\Artem\AppData\Local\Programs\Python\Python36-32\include /Tcsumrange_Cython.c /Fobuild\temp.win32-3.6\Release\sumrange_Cython.obj sumrange_Cython.c c:\users\Artem\appdata\local\programs\python\python36-32\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory error: command C:\Program Files (x86)\Microsoft Visual Studio\Shared\14.0\VC\bin\cl.exe' failed with exit status 2
Es scheint, wie Problem in pathes ist Compiler. Ich startete das Dienstprogramm gefunden in "C: \ Program Files (x86) \ Microsoft Visual Studio \ Shared \ 14.0 \ VC \"
vcvarsall x86
, um die pathes einzurichten, aber es funktioniert nicht auch mit dem Fehler
Error in script usage. The correct usage is: vcvarsall [option] or vcvarsall [option] store or vcvarsall [option] [version number] or vcvarsall [option] store [version number] where [option] is: x86 | amd64 | arm | x86_amd64 | x86_arm | amd64_x86 | amd64_arm where [version number] is either the full Windows 10 SDK version number or "8.1" to use the windows 8.1 SDK : The store parameter sets environment variables to support store (rather than desktop) development. : For example: vcvarsall x86_amd64 vcvarsall x86_arm store vcvarsall x86_amd64 10.0.10240.0 vcvarsall x86_arm store 10.0.10240.0 vcvarsall x64 8.1 vcvarsall x64 store 8.1 : Please make sure either Visual Studio or C++ Build SKU is installed.
Andere haben schon gefragt, diese Frage, aber die Antwort ist immer noch abwesend python pip on Windows - command 'cl.exe' failed
Eine andere Möglichkeit, das Problem zu lösen sein kann, ist es, den Pfad zu einem anderen Compiler anstelle von Visual C++ zu definieren, während python aufrufen. Aber ich weiß nicht, wie ich es machen soll.
Wondeful! Es klappt. Aber gibt es eine Möglichkeit, PATH gegen vs tools zu reparieren, oder soll ich Cython-Quellen auf diese Weise erstellen? –
Sie können immer manuell Dinge zu PATH hinzufügen, aber es könnte einen Konflikt mit der vorherigen Version geben, wenn beide im Pfad existieren. Probieren Sie es aus, aber notieren Sie es irgendwo, damit Sie es beheben können, wenn Sie in Zukunft Probleme bekommen. http://stackoverflow.com/questions/9546324/Adding-directory-to-path-environment-variable-in-windows –