轉:python—解決“Unable to find vcvarsall.bat”錯誤

來源:互聯網
上載者:User

標籤:

轉自:http://www.douban.com/note/361230278/?type=like

參考:http://my.oschina.net/zhangdapeng89/blog/54407 評論

- Python 2.7 會搜尋 Visual Studio 2008.
如果你電腦上沒有這個版本的話,比如只有:
1.Visual Studio 2010,在cmd裡面執行:



SET VS90COMNTOOLS=%VS100COMNTOOLS%

2. Visual Studio 2012 的話:

SET VS90COMNTOOLS=%VS110COMNTOOLS%

然後就可以正常了

- 如果安裝了VS2010或是VS2012可以使用下面的方法解決:
If you have Visual Studio 2010 installed, execute >
SET VS90COMNTOOLS=%VS100COMNTOOLS%
or with Visual Studio 2012 installed >
SET VS90COMNTOOLS=%VS110COMNTOOLS%
python 2.7在setup的時候尋找的是VS2008編譯的。
For Windows installations: While running setup.py for for package
installations Python 2.7 searches for an installed Visual Studio 2008.
You can trick Python to use newer Visual Studio by setting correct path
in VS90COMNTOOLS environment variable before calling setup.py.



原文連結:http://i.xlanlab.com/2793.html

轉:python—解決“Unable to find vcvarsall.bat”錯誤

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.