Unable to find vcvarsall.bat

来源:互联网 发布:中俄双边贸易数据 编辑:程序博客网 时间:2024/05/01 19:18

python easy_install Unable to find vcvarsall.bat

1 Comment | 技术文章 | by shqzzy | 3753 Views. | 2012-05-10, 9:22 AM

python easy_install 安装提示: Unable to find vcvarsall.bat

解决办法:

http://blog.eddsn.com/2010/05/unable-to-find-vcvarsall-bat/

  1. First of all download MinGW. You need g++ compiler and MingW make in setup.
  2. If you installed MinGW for example to “C:\MinGW” then add “C:\MinGW\bin” to your PATH in Windows.
  3. Now start your Command Prompt and go the directory where you have your setup.py residing.
  4. Last and most important step:
  5.  setup.py install build --compiler=mingw32

 

提示:gcc: error: unrecognized command line option '-mno-cygwin'.

打开c:\python26\Lib/distutils/cygwinccompiler.py 删除里面 '-mno-cygwin'

0 0
原创粉丝点击