日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

安装python模块时,遇到error: Unable to find vcvarsall.bat

發布時間:2025/7/14 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 安装python模块时,遇到error: Unable to find vcvarsall.bat 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

為什么80%的碼農都做不了架構師?>>> ??

參考博文:

http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat


解決辦法的前提是,系統中必須安裝了vs的相關版本。

For Windows installations:

While running setup.py for package installations, Python 2.7 searches for an installed Visual Studio 2008. You can trick Python to use a newer Visual Studio by setting the correct path in VS90COMNTOOLS environment variable before calling setup.py.

If you have Visual Studio 2010 installed, execute

SET?VS90COMNTOOLS=%VS100COMNTOOLS%

or with Visual Studio 2012 installed (Visual Studio Version 11)

SET?VS90COMNTOOLS=%VS110COMNTOOLS%

or with Visual Studio 2013 installed (Visual Studio Version 12)

SET?VS90COMNTOOLS=%VS120COMNTOOLS%

? ?


轉載于:https://my.oschina.net/shniu/blog/311455

總結

以上是生活随笔為你收集整理的安装python模块时,遇到error: Unable to find vcvarsall.bat的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。