Chinaunix

标题: 用easy_install 安装包时出现 ubable find to vcvarsallbat [打印本页]

作者: Jpython    时间: 2014-04-03 18:46
标题: 用easy_install 安装包时出现 ubable find to vcvarsallbat
我笔记本里只有VC++,没有VS,想安装个VS2008把,这文件也太大了。mingw也一直安装错误,求解决方案。
作者: xmchenb    时间: 2014-04-09 15:45
解决办法:

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

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



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

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


   




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2