詳解windows python3.7安裝numpy問題的解決方法
我的是win7的系統(tǒng),去python官網(wǎng)下載python3.7安裝
CMD #打開命令窗口
pip install numpy #在cmd中輸入
提示 需要c++14.0,
解決辦法:
1, 進(jìn)入https://www.lfd.uci.edu/~gohlke/pythonlibs/#wordcloud
我的是win10的系統(tǒng),去python官網(wǎng)下載python3.7安裝
CMD #打開命令窗口
pip install numpy #在cmd中輸入
提示 需要c++14.0,
解決辦法:
1, 進(jìn)入https://www.lfd.uci.edu/~gohlke/pythonlibs/#wordcloud
根據(jù)我的電腦和安裝的python我下載最后一個,保存在python目錄下,隨后cmd進(jìn)入該目錄,
輸入pip install numpy‑1.14.1+mkl‑cp37‑cp37m‑win_amd64.whl 即可
C:\Users\12345\AppData\Local\Programs\Python\Python37\Scripts>pip install numpy-1.14.3+mkl-cp37-cp37m-win_amd64.whl Processing c:\users\12345\appdata\local\programs\python\python37\scripts\numpy-1.14.3+mkl-cp37-cp37m-win_amd64.whl Installing collected packages: numpy Successfully installed numpy-1.14.3+mkl
同樣的 安裝pandas 的方法也是一樣的
下載后 復(fù)制到\Users\12345\AppData\Local\Programs\Python\Python37\Scripts>
pip install pandas-0.23.0-cp37-cp37m-win_amd64.whl
安裝圖形界面seaborn 也一樣
pip install seaborn-0.8.1-py2.py3-none-any.whl
但是安裝matplotlib遇到了 error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
解決方法是下載
http://1445568.ch1.data.tv002.com:443/down/fd9282f666dce22ef8848171236f456a-3287928/visualcppbuildtools_full.exe?cts=f-D120A234A24A43F105e1&ctp=120A234A24A43&ctt=1528324956&limit=1&spd=150000&ctk=17728aba100ad4e1159d27227523f6da&chk=fd9282f666dce22ef8848171236f456a-3287928&mtd=1
下載完成后重新pip install matplotlib-2.2.2-cp37-cp37m-win_amd64.whl
C:\Users\12345\AppData\Local\Programs\Python\Python37\Scripts>pip install matplotlib-2.2.2-cp37-cp37m-win_amd64.whl Processing c:\users\12345\appdata\local\programs\python\python37\scripts\matplotlib-2.2.2-cp37-cp37m-win_amd64.whl Requirement already satisfied: six>=1.10 in c:\users\12345\appdata\local\programs\python\python37\lib\site-packages (from matplotlib==2.2.2) (1.11.0) Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in c:\users\12345\appdata\local\programs\python\python37\lib\site-packages (from matplotlib==2.2.2) (2.2.0) Requirement already satisfied: pytz in c:\users\12345\appdata\local\programs\python\python37\lib\site-packages (from matplotlib==2.2.2) (2018.4) Requirement already satisfied: python-dateutil>=2.1 in c:\users\12345\appdata\local\programs\python\python37\lib\site-packages (from matplotlib==2.2.2) (2.7.3) Requirement already satisfied: cycler>=0.10 in c:\users\12345\appdata\local\programs\python\python37\lib\site-packages (from matplotlib==2.2.2) (0.10.0) Collecting kiwisolver>=1.0.1 (from matplotlib==2.2.2) Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001AEFF3E5F60>, 'Connection to 10.180.28.148 timed out. (connect timeout=15)')': /simple/kiwisolver/ Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001AEFF3E5B38>, 'Connection to 10.180.28.148 timed out. (connect timeout=15)')': /simple/kiwisolver/ Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001AEFF3E59E8>, 'Connection to 10.180.28.148 timed out. (connect timeout=15)')': /simple/kiwisolver/ Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001AEFF407B70>, 'Connection to 10.180.28.148 timed out. (connect timeout=15)')': /simple/kiwisolver/ Using cached https://files.pythonhosted.org/packages/31/60/494fcce70d60a598c32ee00e71542e52e27c978e5f8219fae0d4ac6e2864/kiwisolver-1.0.1.tar.gz Requirement already satisfied: numpy>=1.7.1 in c:\users\12345\appdata\local\programs\python\python37\lib\site-packages (from matplotlib==2.2.2) (1.14.3+mkl) Requirement already satisfied: setuptools in c:\users\12345\appdata\local\programs\python\python37\lib\site-packages (from kiwisolver>=1.0.1->matplotlib==2.2.2) (39.0.1) Installing collected packages: kiwisolver, matplotlib Running setup.py install for kiwisolver ... done Successfully installed kiwisolver-1.0.1 matplotlib-2.2.2
以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
相關(guān)文章
Python Handler處理器和自定義Opener原理詳解
這篇文章主要介紹了Python Handler處理器和自定義Opener原理詳解,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友可以參考下2020-03-03python神經(jīng)網(wǎng)絡(luò)使用tensorflow實(shí)現(xiàn)自編碼Autoencoder
這篇文章主要為大家介紹了python神經(jīng)網(wǎng)絡(luò)使用tensorflow實(shí)現(xiàn)自編碼Autoencoder,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪2022-05-05PyMongo進(jìn)行MongoDB查詢和插入操作的高效使用示例
這篇文章主要為大家介紹了PyMongo進(jìn)行MongoDB查詢和插入操作的高效使用示例,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪2023-11-11Python實(shí)現(xiàn)的排列組合計算操作示例
這篇文章主要介紹了Python實(shí)現(xiàn)的排列組合計算操作,涉及Python數(shù)學(xué)運(yùn)算的相關(guān)函數(shù)與使用技巧,需要的朋友可以參考下2017-10-10pandas按條件篩選數(shù)據(jù)的實(shí)現(xiàn)
這篇文章主要介紹了pandas按條件篩選數(shù)據(jù)的實(shí)現(xiàn),文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2021-02-02