python – 尝试安装qrcode-0.2.1时出现“无法找到vcvarsall.bat”错误

请帮我解决这个错误

C:\Python26\Lib\site-packages\pyqrcode\encoder>python setup.py install
running install
running bdist_egg
running egg_info
writing qrcode.egg-info\PKG-INFO
writing top-level names to qrcode.egg-info\top_level.txt
writing dependency_links to qrcode.egg-info\dependency_links.txt
package init file 'qrcode\__init__.py' not found (or not a regular file)
writing manifest file 'qrcode.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
running build_ext
building 'qrcode.Encoder' extension
error: Unable to find vcvarsall.bat

谢谢,

马努

解决方法:

Distutils与MS Compiler工具链不兼容.

此文件是设置环境所必需的,这将有助于distutils使用MS编译器工具链.

有很多方法可以使其发挥作用.

请看以下可能对您有帮助的帖子.

> Compile Python 2.7 Packages With Visual Studio 2010 Express

†链接进入archive.org,因为original page离开了.

上一篇:在Mac OS X 10.5.8上安装PHP的Mcrypt扩展


下一篇:java – 无法为Eclipse安装GWT Toolkit?