Can't find vcvarsall.bat file [duplicate]

人盡茶涼 提交于 2020-01-24 05:04:47

问题


I'm trying to install Scrapy on my computer using pip. For the most part it works, but after a short while in the installation I get an error saying "unable to find vcvarsall.bat. I've looked around for help, and most sources say just to install Visual Express 2008. However, even after doing this, when I navigate to C:\Program Files (x86)\Microsoft Visual Studio 8\VC, I don't see the vcvarsall.bat file. Any ideas?


回答1:


Issue with disutils not finding vcvarsall.bat. It should be fixed in some release

There is a workaorund for compiling. Try this blog




回答2:


UPDATED
We can install Microsoft Visual C++ Compiler for Python 2.7 to solve this vcvarsall.bat problem.

First install lxml by Windows Installer from PyPI, it would save a lot from libxml2 and libxslt include or lib issues.

Then install Scrapy by pip should be easy.

ORIGINAL
Microsoft Visual Studio 8 is VS2005.

Default directory of Visual C++ 2008 Express Edition should be C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\

Or you can just download the Scrapy installer for Python2.6.

Scrapy-0.12.0.2542.win32-py2.6.exe

Scrapy-0.12.0.2542.win-amd64-py2.6.exe




回答3:


Hmmm... it should be there.

http://msdn.microsoft.com/en-us/library/x4d2c09s%28v=VS.90%29.aspx

According to Microsoft, that is the "default" location, so it could be in another location. How about a file system search below "Program Files (x86)"?



来源:https://stackoverflow.com/questions/6126737/cant-find-vcvarsall-bat-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!