windows7下Python3.5.3 安装 matplotlib-2.1.0
2017-10-24 19:53
363 查看
注意:python安装matplotlib需要先安装numpy,安装numpy参考网址:http://blog.csdn.net/qq_28093585/article/details/78330763
(1)安装环境:
64位win7系统,已经安装python3.5.3
(2)查看本机Python支持的安装包版本,在cmd窗口执行以下语句:
(3)在matplotlib的下载网址下载合适版本的安装包(whl文件,下图黄线圈中的是适合我的电脑的版本)
(4)安装matplotlib
1.将下载的安装包复制到python安装目录下的scripts文件夹(这个文件夹有python库安装程序pip3.exe和pip3.5.exe)
3.确保上面的scripts文件夹路径在系统变量 path中,如果没有需要手动添加(一般安装完python后会自动添加这个环境变量)
4.重新启动cmd窗口,执行语句:pip3.5 install +numpy的路径+文件名 ( 注意python3.4运行的话输入: pip3.4,具体看scripts文件夹中的exe名称定)
例如我的电脑上输入的是:pip3.5 install C:\Users\john\AppData\Local\Programs\Python\Python35\Scripts\matplotlib-2.1.0-cp35-cp35m-win_amd64.whl
(5)出现的问题:"could not find a version that satisfy..."
分析:安装matplotlib需要安装其他的库,Python安装matplotlib本来会自动下载时下载的网址是国外的网址,无法访问。
(5)解决方法:使用离线方法安装matplotlib
1.下载离线安装包:
2.按照上面的顺序依次离线安装这些安装包。
先将上面下载下来的安装包复制到scripts文件夹;打开cmd,执行语句pip3.5 install +numpy的路径+文件名
依次安装上面下载的软件。
例如在我电脑上依次离线安装这些软件的语句是:
(1)安装环境:
64位win7系统,已经安装python3.5.3
(2)查看本机Python支持的安装包版本,在cmd窗口执行以下语句:
python; import pip; print(pip.pep425tags.get_supported())运行后会打印出本机python支持的安装包版本:
(3)在matplotlib的下载网址下载合适版本的安装包(whl文件,下图黄线圈中的是适合我的电脑的版本)
(4)安装matplotlib
1.将下载的安装包复制到python安装目录下的scripts文件夹(这个文件夹有python库安装程序pip3.exe和pip3.5.exe)
3.确保上面的scripts文件夹路径在系统变量 path中,如果没有需要手动添加(一般安装完python后会自动添加这个环境变量)
4.重新启动cmd窗口,执行语句:pip3.5 install +numpy的路径+文件名 ( 注意python3.4运行的话输入: pip3.4,具体看scripts文件夹中的exe名称定)
例如我的电脑上输入的是:pip3.5 install C:\Users\john\AppData\Local\Programs\Python\Python35\Scripts\matplotlib-2.1.0-cp35-cp35m-win_amd64.whl
(5)出现的问题:"could not find a version that satisfy..."
分析:安装matplotlib需要安装其他的库,Python安装matplotlib本来会自动下载时下载的网址是国外的网址,无法访问。
(5)解决方法:使用离线方法安装matplotlib
1.下载离线安装包:
(1) pip-9.0.1-py2.py3-none-any.whl 网址:https://pypi.python.org/pypi/pip (2) pyparsing-2.2.0-py2.py3-none-any.whl 网址:https://pypi.python.org/pypi/pyparsing/2.2.0 (3) pytz-2017.2-py2.py3-none-any.whl 网址:https://pypi.python.org/pypi/pytz/ (4) setuptools-36.6.0-py2.py3-none-any.whl 网址:https://pypi.python.org/pypi/setuptools (5) six-1.10.0-py2.py3-none-any.whl 网址:https://pypi.python.org/pypi/six (6) python_dateutil-2.4.2-py2.py3-none-any.whl 网址:https://pypi.python.org/pypi/python-dateutil/2.4.2 (7) cycler-0.10.0-py2.py3-none-any.whl 网址:https://pypi.python.org/pypi/Cycler (8) matplotlib-2.1.0-cp35-cp35m-win_amd64.whl 网址:https://pypi.python.org/pypi/matplotlib
2.按照上面的顺序依次离线安装这些安装包。
先将上面下载下来的安装包复制到scripts文件夹;打开cmd,执行语句pip3.5 install +numpy的路径+文件名
依次安装上面下载的软件。
例如在我电脑上依次离线安装这些软件的语句是:
pip3.5 install C:\Users\john\AppData\Local\Programs\Python\Python35\Scripts\pip-9.0.1-py2.py3-none-any.whl pip3.5 install C:\Users\john\AppData\Local\Programs\Python\Python35\Scripts\pyparsing-2.2.0-py2.py3-none-any.whl pip3.5 install C:\Users\john\AppData\Local\Programs\Python\Python35\Scripts\pytz-2017.2-py2.py3-none-any.whl pip3.5 install C:\Users\john\AppData\Local\Programs\Python\Python35\Scripts\setuptools-36.6.0-py2.py3-none-any.whl pip3.5 install C:\Users\john\AppData\Local\Programs\Python\Python35\Scripts\six-1.11.0-py2.py3-none-any.whl pip3.5 install C:\Users\john\AppData\Local\Programs\Python\Python35\Scripts\python_dateutil-2.4.2-py2.py3-none-any.whl pip3.5 install C:\Users\john\AppData\Local\Programs\Python\Python35\Scripts\cycler-0.10.0-py2.py3-none-any.whl pip3.5 install C:\Users\john\AppData\Local\Programs\Python\Python35\Scripts\matplotlib-2.1.0-cp35-cp35m-win_amd64.whl3.安装成功:
相关文章推荐
- Windows7下Python安装Numpy、Matplotlib以及Scipy时出现的问题以及解决办法
- windows 安装python3.6(numpy,scipy,pandas,matplotlib,scikit-learn)
- windows 安装python3.6(numpy,scipy,pandas,matplotlib,scikit-learn)
- windows安装python+numpy+scipy+matplotlib+pandas+beautifulsoup
- windows 安装python3.6(numpy,scipy,pandas,matplotlib,scikit-learn)
- Windows10+Python3.6下安装NumPy+SciPy+Matplotlib(转改)
- 小白在windows的python里面安装matplotlib
- windows下python3.4安装Numpy和matplotlib
- [Python]windows下安装matplotlib
- windows 安装python3.6(numpy,scipy,pandas,matplotlib,scikit-learn)
- 【python】matplotlib在windows下安装
- Windows下python安装matplotlib
- Python3.6:Windows下如何安装matplotlib
- Windows下安装Python3的numpy、matplotlib、scipy包
- windows下python安装Numpy、matplotlib和whl文件
- Windows系统中安装Python模块pip numpy matplotlib
- windows 环境下 python 安装matplotlib
- windows下Python matplotlib的安装
- 在windows下python,pip,numpy,scipy,matplotlib的安装
- python numpy,matplotlib,setuptools windows环境下的安装