Python3 pip 解決問題: error: Unable to find vcvarsall.bat
當我給 python3.5 安裝 第三方庫 charset
時:pip install charset
,出現了錯誤:
D:\WorkSpace\python_ws\python-large-web-crawler\firstdemo>pip install charset
Collecting charset
Downloading charset-1.0.1.tar.gz (189kB)
100% |████████████████████████████████| 194kB 3.9kB/s
Collecting chardet (from charset)
Using cached chardet-2.3.0.tar.gz
Installing collected packages: chardet, charset
Running setup.py install for chardet ... done
Running setup.py install for charset ... error
Complete output from command c:\users \aobo\appdata\local\programs\python\python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\AOBO\\AppData\\Local\\Temp\\pip-build-ydv8oep3\\charset\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users \AOBO\AppData\Local\Temp\pip-hlxpja30-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.5
creating build\lib.win-amd64-3.5\charset
copying charset\cmd.py -> build\lib .win-amd64-3.5\charset
copying charset\__init__.py -> build\lib.win-amd64-3.5\charset
running egg_info
writing charset.egg-info\PKG-INFO
writing top-level names to charset.egg-info\top_level.txt
writing dependency_links to charset.egg-info\dependency_links.txt
writing requirements to charset.egg-info\requires.txt
writing entry points to charset.egg-info\entry_points.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'charset.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.txt' under directory 'docs'
warning: no files found matching '*.txt' under directory 'languagedet\data'
warning: no files found matching '*.pickle' under directory 'languagedet\data'
warning: no files found matching '*.conf' under directory 'languagedet\data'
writing manifest file 'charset.egg-info\SOURCES.txt'
running build_ext
building 'charset.detector' extension
error: Unable to find vcvarsall.bat
----------------------------------------
Command "c:\users\aobo\appdata\local\programs\python\python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\AOBO\\AppData\\Local\\Temp\\pip-build-ydv8oep3\\charset\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\AOBO\AppData\Local\Temp\pip-hlxpja30-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\AOBO\AppData\Local\Temp\pip-build-ydv8oep3\charset\
為什麼出現這個問題?
在命令列中執行:python,看看當前使用的python的版本,和它所需要的Vs軟體的編譯器的版本:
當前python版本是:python3.5.0;當前需要的Vs編譯器的版本是:MSC v. 1900
檢視下面的表格,對於版本的Visual C ++使用的編譯器版本如下:(表的參考網站)
Visual C ++版本 | 編譯器版本 |
---|---|
Visual C++ 4.x | MSC_VER=1000 |
Visual C++ 5 | MSC_VER=1100 |
Visual C++ 6 | MSC_VER=1200 |
Visual C++ .NET | MSC_VER=1300 |
Visual C++ .NET 2003 | MSC_VER=1310 |
Visual C++ 2005 (8.0) | MSC_VER=1400 |
Visual C++ 2008 (9.0) | MSC_VER=1500 |
Visual C++ 2010 (10.0) | MSC_VER=1600 |
Visual C++ 2012 (11.0) | MSC_VER=1700 |
Visual C++ 2013 (12.0) | MSC_VER=1800 |
Visual C++ 2015 (14.0) | MSC_VER=1900 |
所以解決這個 error: Unable to find vcvarsall.bat
問題的方法就是:下載並安裝 Visual Studio 2015 軟體,問題即可解決。
解決辦法 — 安裝:Python Tools 2.2.5 for Visual Studio 2015
Step 1 . 下載 Visual Studio 2015 軟體。
下載和安裝 Visual Studio 2015 軟體 的詳細步驟請到這個部落格檢視:下載和安裝 Visual Studio 2015 軟體 的詳細步驟圖文教程。(我們按照這個網站的方法安裝VS2015,但不按照這個部落格裡面說的安裝。)
如果安裝上面的網站的方法安裝VS2015軟體,那麼問題還是不能解決。(
error: Unable to find vcvarsall.bat
)
Step 2 . 安裝 Visual Studio 2015 軟體
這個VS2015,安裝時需要選擇:自定義安裝。(參考網站)
參考網站:
我們的目的就是安裝這個軟體:Python Tools 2.2.5 for Visual Studio 2015 。現在,這個軟體已經安裝完了。
注意:
如果一直停留在:“正在配置您的系統,這可能需要一些時間”
解決:關掉VS的所有程序。
搞定,問題解決
現在再執行:pip install charset
。問題解決。
相關推薦
Python3 pip 解決問題: error: Unable to find vcvarsall.bat
當我給 python3.5 安裝 第三方庫 charset 時:pip install charset,出現了錯誤: D:\WorkSpace\python_ws\python-large-web-crawler\firstdemo>pip
解決:Error:Unable to find method 'com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List
解決新增Butterknife8.8.1依賴後出錯的問題 1.在根目錄下的build.gradle中的dependencies新增如下: 這裡注意是8.4.0的版本!! classpath 'com.jakewharton:butterknife-gradle-pl
轉載:徹底解決 error: Unable to find vcvarsall.bat
轉自:http://blog.csdn.net/secretx/article/details/17472107 侵權刪 1.windows上做Python開發,搭環境還真不比Linux容易。error: Unable to find vcvarsall.bat這
徹底解決 error: Unable to find vcvarsall.bat
轉自:http://blog.csdn.net/secretx/article/details/17472107 1.windows上做Python開發,搭環境還真不比Linux容易。error: Unable to find vcvarsall.bat這個錯誤眼熟吧? 凡
error: Unable to find vcvarsall.bat
error: Unable to find vcvarsall.bat faster_rcnn進行訓練編譯時,報這個錯誤 faster_rcnn 2015, 專案地址:https://github.com/dBeker/Faster-RCNN-TensorFlow-Python3.5
windows install cython error: "unable to find vcvarsall.bat"
cython作為python的超集,可以同時編譯python和C的程式碼,檔案字尾名為pyx,編譯後匯出pyd檔案(windows環境)或者是so檔案(類unix環境)。具體流程主要為: 1. 將pyx的程式碼編譯成.C檔案; 2. 利用系統
轉:windows下安裝python的C擴展編譯環境(解決“Unable to find vcvarsall.bat”
鏈接 ros link mman ipy nload whl 包名 好的 個人文章除註明轉載外,均為個人原創或者翻譯。 個人文章歡迎各種形式的轉載,但請18歲以上的轉載者註明文章出處,尊重我的勞動,也尊重你的智商; 本文鏈接:http://www.cnblogs.com/
最簡單解決Python安裝拓展包問題:unable to find vcvarsall.bat
一、問題描述 (1)、 電腦配置資訊: win7系統 TMD GCC Python3.5.x (2)使用pip命令安裝mysqlclient時報錯 error:unable to find vcvarsall.bat 我的電腦上安裝了TMD GCC但
Python: Windows下pip安裝庫出錯:Microsoft Visual C++ 9.0 is required < Unable to find vcvarsall.bat
一直在用Linux, 最近想在windows下使用python。 當我想安裝Matplotlib module的時候, 出現以下錯誤。Microsoft Visual C++ 9.0 is required < Unable to find vcvarsall.ba
Python3.4出現unable to find vcvarsall.bat的簡單解決方法
安裝wordcloud的時候,出現報錯,unable to find vcvarsall.bat。研究了好久,發現下面方法可行。 找到安裝目錄下的某個資料夾。 例如我的:F:\Python34\Lib\distutils 找到msvc9compiler.py 開啟搜尋vc_
64位win7中使用vs2013為python3.4安裝pycrypto-2.6.1外掛報Unable to find vcvarsall.bat異常解決方案
問題描述: 64位win7中使用vs2013為python3.4.2安裝pycrypto-2.6.1外掛報Unable to find vcvarsall.bat。 問題分析: 1、原始碼分析,查詢python原始碼distribut模組中出現Unable to find
Python3.4安裝scrapy庫的時候出現Error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat)
python中安裝各種庫時,經常會遇到各種錯誤(例如Error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat) )等,筆者在安裝各種庫時,不會使用pip安裝,或者python安裝,而
Python3.4 安裝mysqlClient提示 Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).錯誤的解決
本人環境:windows8.1, python版本3.4 問題描述:使用pip安裝mysqlClient時報錯:Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat) 解決方案: 1. 去
解決python:Unable to find vcvarsall.bat
轉載原地址 Python 編譯一些模組需要 VS2010 的工具支援,其中 Unable to find vcvarsall.bat 是常見的錯誤…… 這裡記錄下解決方案,以供需要的朋友: 如果你的機子上沒有安裝 VS2010,那麼安裝 VS2010 E
解決:Error: Unable to access jarfile ..\lib\proguard.jar
今天無意升級了ADT到ADT 22.6,打包混淆的時候就出現了問題: Proguard returned with error code 1. See console Error: Unable to access jarfile ..\lib\proguard.j
Android stuido 錯誤:Error:Unable to find optional library: org.apache.http.legacy
今天在匯入新專案的時候出現了一個從來都沒有見過的錯誤,讓我鬱悶了很久,在網上也找了很多一樣錯誤解決方法,但是最終也是沒有解決,不能說網上的解決方法是錯誤,只能說網上的解決辦法是最基礎的,有時候不能夠解決問題,錯誤的截圖如下: 網上的解決辦法是: 1. API23
錯誤 Unable to find vcvarsall.bat 的終極無敵最完美的解決辦法
.bat vc++ 計算 解釋 計算器 bat window win7 mnt Windows 上通過 pip 安裝 python 包,經常會出現這種錯誤。 如:pip install pyodbc。 這種錯誤的簡單明了解釋就是:python 編譯器找不到計算機上面的
windows下,安裝python擴充套件時報錯:unable to find vcvarsall.bat
我在win10環境下安裝一個python擴充套件時,報錯如下: 錯誤原因: %PythonInstallPath%\Lib\distutils\msvc9compiler.py 這個檔案是Python用來處理與VC編譯器有關的操作的。 其中該檔案裡的219行fin
pip3安裝mysql-python報錯:Unable to find vcvarsall.bat解決方法
1 系統版本: 2 使用pip3 install mysql-python報如下錯誤: 3 在pycharm執行專案時已經給我們提示Did you install mysqlclient? 4 安裝mysqlclient代替mysql-
python 安裝模組時提示報錯:Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat)
有時候,在Windows7x64下使用pip安裝包的時候提示報錯:Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat) 環境:windows8 x64 ,python2.7 ,VS2012 解決方案:Microsoft Vi