找不到 vcvarsall.bat 文件
我正在尝试使用 pip 在我的计算机上安装 Scrapy。在大多数情况下,它可以工作,但在安装过程中不久后,我收到一条错误消息“无法找到 vcvarsall.bat”。我四处寻找帮助,大多数消息来源都说只需安装 Visual Express 2008。但是,即使执行此操作后,当我导航到 C:\Program Files (x86)\Microsoft Visual Studio 8\VC 时,我看不到 vcvarsall.bat 文件 有什么想法吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
disutils 找不到 vcvarsall.bat 的问题。它应该在某些版本中修复
有一个用于编译的workaorund。试试这个博客
Issue with disutils not finding vcvarsall.bat. It should be fixed in some release
There is a workaorund for compiling. Try this blog
已更新
我们可以安装Microsoft Visual C++ Compiler for Python 2.7来解决这个 vcvarsall.bat 问题。
首先通过 PyPI 中的 Windows Installer 安装 lxml,这会节省很多
libxml2 和
libxslt
include 或 lib 问题。然后通过 pip 安装 Scrapy 应该很容易。
原创
Microsoft Visual Studio 8 是 VS2005。
Visual C++ 2008 Express Edition 的默认目录应为 C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\
或者您可以直接下载 Python2.6 的 Scrapy 安装程序。
Scrapy-0.12.0.2542.win32-py2.6 .exe
Scrapy-0.12.0.2542.win-amd64-py2 .6.exe
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
andlibxslt
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
嗯...应该在那里。
http://msdn.microsoft.com/en -us/library/x4d2c09s%28v=VS.90%29.aspx
根据 Microsoft 的说法,这是“默认”位置,因此它可能位于其他位置。在“Program Files (x86)”下面进行文件系统搜索怎么样?
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)"?