“Unable to find vcvarsall.bat” error when trying t

2020-07-22 19:42发布

Please help me to solve this error

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

Thanks,

manu

2条回答
欢心
2楼-- · 2020-07-22 20:13

This was a known bug, and should not be an issue anymore.

If using MinGW, try:

setup.py install build ––compiler=mingw32
查看更多
兄弟一词,经得起流年.
3楼-- · 2020-07-22 20:15

Distutils does not play well with MS Compiler tool chain.

This file is required to setup the environment which will help distutils to use MS compiler tool chains.

There are quite a few ways in which this has been made to work.

Please look at the following post which may help you.

The link goes to archive.org, since the original page went away.

查看更多
登录 后发表回答