2014-06-05

[python] unable to find vcvarsall.bat

python version : 2.7

[update : 2014/08/25]

後來有些討論說這樣不是正確的solution...

因為不同python的模組需要用跟python相同版本的編譯器編譯,

也就是說,你還是要裝visual studio 2008來編譯它...

ref1 : http://stackoverflow.com/questions/3047542/building-lxml-for-python-2-7-on-windows/5122521#5122521
ref2 : https://mail.python.org/pipermail/python-list/2010-April/573606.html

另外python 3.3則是裝visual studio 2010 express

不過我沒有這麼多環境可以玩,有遇到在試試..

ref : http://stackoverflow.com/questions/17658092/unable-to-find-vcvarsall-bat-using-python-3-3-in-windows-8

因為python在安裝packages時會透過visual studio的工具來執行,

但是其中所使用的環境變數[VS90COMNTOOLS]因為預設是使用visual studio 2008,

所以如果是安裝visual studio 2010或2012,可以透過下面指令修正.

VS2010

SET VS90COMNTOOLS=%VS100COMNTOOLS%

VS2012

SET VS90COMNTOOLS=%VS110COMNTOOLS%

ref : http://stackoverflow.com/questions/7914108/error-unable-to-find-vcvarsall-bat-when-installing-pymssql-2-0-0b1-what-am-i

沒有留言:

在Hyper-V上跑ubuntu 22.04 Desktop, 裝完後一登入就凍住

如果你也遇到這情況, 你可以執行以下步驟 按 Ctrl+Alt+F3 進入 virtual console. (按Ctrl+Alt+F1 可以再回到GUI) 登入後執行下面指令 (更新kernel) * sudo add-apt-repository ppa:capp...