![]() |
|
[Python] Error in compiling cython extension on Python 3.6.4 on Windows 8 using MS Visual Stud - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Python] Error in compiling cython extension on Python 3.6.4 on Windows 8 using MS Visual Stud (/showthread.php?tid=5976353) |
Error in compiling cython extension on Python 3.6.4 on Windows 8 using MS Visual Stud - goldenmean - Jun 3, 2019 I have a setup.py file as below: Code #from distutils.core import setupAnd a simple print as below in file cyt_hello_world.pyx Code print("Cython Hello World!")I compile this cython extension on Windows using below command python setup.py build_ext --inplace Whether I use distutils or setuptools in the setup.py file above, both give errors as below. Error seen, If I use distutils F:\PythonCode>python setup.py build_ext --inplace running build_ext building 'cyt_hello_world' extension error: Unable to find vcvarsall.bat If I use setuptools, below is the error F:\PythonCode>python setup.py build_ext --inplace running build_ext building 'cyt_hello_world' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": I have Microsoft Visual Studio installed at path : C:\Program Files (x86)\Microsoft Visual Studio 12.0 I can see file vcvarsall.bat in MSVisual Studio 12.0 installation folder C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC How can i point to this *.bat and resolve these errors if i use distutils OR How can i fix the errors: "Microsoft Visual C++ 14.0 is required", if any different installation needed? Can someone give any inputs? NOTE: I have tried setting set VS90COMNTOOLS=%VS120COMNTOOLS% but no success, same error of vcvarsall.bat . I have also added C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC to my windows PATH variable, but no success. |