Python-安装Numpy,Scipy,Matplotlib-pip+whl文件
来源:互联网 发布:移动网络玩战舰世界 编辑:程序博客网 时间:2024/05/17 15:20
环境:Windows 10,64位 + Python 3.6 + pip
资源:Numpy, Scipy, Matplotlib的wheel文件见百度网盘或加州大学欧文分校的pythonlib地址
- https://pan.baidu.com/s/1kV00cB1 密码: 488k
- http://www.lfd.uci.edu/~gohlke/pythonlibs/
文件如下:(包名-版本号-for CPython3.6-(CPython3.6 MTK)-windows-64.whl)
- numpy‑1.12.1+mkl‑cp36‑cp36m‑win_amd64.whl
- scipy-0.19.0-cp36-cp36m-win_amd64.whl
- matplotlib-2.0.0-cp36-cp36m-win_amd64.whl
这里是Numpy文件是Numpy+MKL的。Numpy+MKL是将Numpy链接的基础包换成了高度优化的数值计算库Intel math kernel library (MKL),提高了计算性能。没有冲突问题,尽情使用。
Numpy is a fundamental package needed for scientific computing with Python. Numpy+MKL is linked to the Intel® Math Kernel Library and includes required DLLs in the numpy.core directory.
安装步骤:
- 打开命令行
- 切换到文件下载目录
- 依次安装Numpy、Scipy、Matplotlib
安装命令:
pip install 安装文件全称(带文件后缀)
- 例如:
pip install numpy‑1.12.1+mkl‑cp36‑cp36m‑win_amd64.whl - 但是:
在安装 numpy‑1.12.1+mkl‑cp36‑cp36m‑win_amd64.whl 的时候,会出现错误:numpy‑1.12.1+mkl‑cp36‑cp36m‑win_amd64.whl is not a valid wheel filename ,意思是 这个文件的名字不是一个有效的wheel文件名。所以我修改了一下文件名:numpy-1.12.1-cp36-none-win_amd64.whl ,这个时候再执行安装命令就没问题了。 - 最后:
使用 pip install 安装文件全称 安装scipy和matplotlib即可。 - 不推荐使用”pip install numpy”安装或下载如”numpy-MKL-1.8.0.win-amd64-py2.7.exe”类似文件
安装后检验:
- 打开python cmd
- 依次输入命令import numpy,import scipy,import matplotlib。如果输出错误的话说明该包安装错误,如果控制台顺利跳转到下一行,则说明该包安装成功。
错误:
错误1.“ImportError: cannot import name NUMPY_MKL”
解释:“numpy”是使用“pip install numpy”命令安装的,和“scipy”的下载的源不一样,但是就不行了,因为scipy基于numpy。
解决:用命令“pip uninstall numpy”卸载numpy,重新安装与scipy同源的numpy。
参考资料:
1. python3.6安装numpy scipy matplotlib的正确打开方式(win64)
2. 微软LightGBM Windows下Python安装:ImportError: cannot import name NUMPY_MKL
- Python-安装Numpy,Scipy,Matplotlib-pip+whl文件
- 在windows下python,pip,numpy,scipy,matplotlib的安装
- 在windows下python,pip,numpy,scipy,matplotlib的安装
- windows下python安装Numpy、matplotlib和whl文件
- python安装numpy、scipy和matplotlib等whl包的方法
- python安装numpy、scipy和matplotlib等whl包的方法
- python:安装numpy, Scipy,Matplotlib
- Win7,64位下Python3.5.2,安装numpy、matplotlib、scipy(whl文件)
- 安装 python/pip/numpy/matplotlib
- 安装 python/pip/numpy/matplotlib
- windows64位Python3.5.2基础上,安装numpy、matplotlib、scipy(whl文件)安装tensorflow及sklearn包
- python使用pip安装SciPy、SymPy、matplotlib
- 在windows下python,pip,numpy,scipy,matplotlib的安装 系统:win7(64bit)
- ubuntu 下 python numpy,scipy,matplotlib安装
- python scipy numpy matplotlib傻瓜式安装
- 安装配置Python+Numpy+Scipy+Matplotlib环境
- Python: Ubuntu 安装numpy,scipy,matplotlib
- python下安装numpy、matplotlib、scipy过程
- Icommand用法
- LeetCode-38-Count and Say Python的int_to_string
- C语言之printf() %s 转换说明修饰符
- React性能优化——工具篇
- Linux查找含有某字符串的所有文件
- Python-安装Numpy,Scipy,Matplotlib-pip+whl文件
- 阿里云服务器怎么用 , 阿里云服务器的使用方法。
- java 基础语法(序列化&文本数据读写)
- Intelij idea tomcat7
- Hololens开发-The associated script can not be loaded
- boa移植与测试及遇到的问题
- Ubuntu使用记录
- ES Java API
- SDK将彻底颠覆开发者的价值观?