unable to find vcvarsall.bat
System: PyCharm 2.7.2; Python 2.7.5; Visual Studio 10.0
Hello -
I am trying to update numpy from 1.5.1 to 1.7.1 via the Settings window in PyCharm (File->Settings->Python Interpreters). (I successfully updated networkx a few moments ago.)
When I try to update numpy, I eventually get an error message "Unable to find vcvarsall.bat". However that file exists in C:\Program Files (86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat.
Any insight on this would be appreciated. Thank you.
Best,
David
Hello -
I am trying to update numpy from 1.5.1 to 1.7.1 via the Settings window in PyCharm (File->Settings->Python Interpreters). (I successfully updated networkx a few moments ago.)
When I try to update numpy, I eventually get an error message "Unable to find vcvarsall.bat". However that file exists in C:\Program Files (86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat.
Any insight on this would be appreciated. Thank you.
Best,
David
Please sign in to leave a comment.
Did you ever fix this problem?
Best regards,
David
Does your environment have setuptools 6.0 or higher as mentioned in the Microsoft page for the compiler?
I'm not using that compiler edition (I have VS 2008) but I think you might still need to open a Visual Studio command prompt, or manually run their environment setup script at a prompt, in order to set up the necessary environment for the numpy package to compile. Once you have done that, run the pip upgrade at that prompt:
If that still doesn't work you might try to obtain a binary package that's already compiled such as from here.
Now I can get back to coding. :-)
Best regards,
David
I have the same issue but I am able to compile cython file (.pyx) from VS command line but not from PyCharm if I use pyximport. I get the above error. Any ideas what could be the issue?