Last active
September 16, 2020 20:01
-
-
Save bendtherules/2fdb3d46ff0c0ca22980 to your computer and use it in GitHub Desktop.
How to install C compiler for python ( compile c+python modules from pip and also from cython)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install Microsoft Visual C++ Compiler for Python 2.7 | |
create this fake folder "C:\Users\ab\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\fake1\fake2" | |
set env var VS90COMNTOOLS= that fake folder | |
now goto C:\Users\ab\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0 | |
youll find there is vcvarsall.bat, but it is not searched for here | |
copy it and paste in the VC folder | |
open for editing: | |
[in 3 places youll find this type of statement, replace them with these] | |
set VCINSTALLDIR=%~dp0 | |
set WindowsSdkDir=%~dp0\..\WinSDK\ | |
thank god, hoping everything will work :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please put your own user path instead.