详解windows python3.7安装numpy问题的解决方法
我的是win7的系统,去python官网下载python3.7安装
cmd #打开命令窗口
pip install numpy #在cmd中输入
提示 需要c++14.0,
解决办法:
1, 进入
我的是win10的系统,去python官网下载python3.7安装
cmd #打开命令窗口
pip install numpy #在cmd中输入
提示 需要c++14.0,
解决办法:
1, 进入
根据我的电脑和安装的python我下载最后一个,保存在python目录下,随后cmd进入该目录,
输入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 的方法也是一样的
下载后 复制到\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
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。
上一篇: python之super的使用小结
下一篇: 详解python3中的真值测试
推荐阅读
-
详解windows python3.7安装numpy问题的解决方法
-
.NET Core SDK在Windows系统安装后出现Failed to load the hostfxr.dll等问题的解决方法
-
Windows安装MySQL8.0.16 的步骤及出现错误问题解决方法
-
windows下python 3.9 Numpy scipy和matlabplot的安装教程详解
-
详解windows python3.7安装numpy问题的解决方法
-
图文详解Windows 7下安装Oracle 11g遇到问题及解决方法
-
.NET Core SDK在Windows系统安装后出现Failed to load the hostfxr.dll等问题的解决方法
-
windows下python 3.9 Numpy scipy和matlabplot的安装教程详解
-
Windows安装MySQL8.0.16 的步骤及出现错误问题解决方法