1. 程式人生 > >python 安裝模塊時提示報錯:Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat)

python 安裝模塊時提示報錯:Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat)

親測 解決 com pip安裝 crf 管理員 網上 pretty mic

有時候,在Windows7x64下使用pip安裝包的時候提示報錯:Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat)

環境:windows8 x64 ,python2.7 ,VS2012

解決方案:Microsoft Visual C++ Compiler for Python 2.7
下載以後得到一個
VCForPython27.msi
win8直接安裝msi文件時,會出現2503,2502錯誤
解決方案:Win8系統msi軟件安裝方法
簡單的說,就是進入cmd(管理員),輸入

msiexec /i msi文件所在的路徑\xx.msi
如:msiexec /i C:\1.msi

此時可以安裝msi了
安裝好後再用

pip install python_crfsuite

可以得到python下的CRFsuite模塊
使用的時候直接

import python_crfsuite


網上看到的,之前安裝numpy時,碰到此問題,且安裝msi文件報錯,親測可用。
https://www.microsoft.com/en-us/download/details.aspx?id=44266 下載鏈接

python 安裝模塊時提示報錯:Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat)