查看python,numpy,scipy,matplotlib的版本及版本更新
2017-04-21 10:51
531 查看
查看python,numpy,scipy,matplotlib的版本及版本更新
最近运行一个程序需要更新matplotlib==1.5.3
numpy==1.11.3
scipy==0.17.0
seaborn==0.7.1
因为都已经装过了只是版本不合适,所以只要升级就可以了,直接用 pip install -r requirements.txt 报错,所以准备一个一个的更新
查看版本
原文在这里查看python版本
方法一:
python -V 注意:‘-V‘中‘V’为大写字母,只有一个‘-’
方法二:
python –version 注意:‘–version’中有两个‘-’
查看python安装位置
方法一:
python -c “import sys; print sys.executable”
方法二:
python -c “import os; print os.sys.executable”
python -c “import os; path = os.sys.executable;folder=path[0 : path.rfind(os.sep)]; print folder”
查看Numpy版本
python -c “import numpy; print numpy.version.version”
或
python -c “import numpy; print numpy.version”
查看Numpy安装路径
python -c “import numpy; print numpy.file”
查看SciPy版本
python -c “import scipy; print scipy.version.version”
或
python -c “import scipy; print scipy.version”
查看SciPy安装路径
python -c “import scipy; print scipy.file”
查看Matplotlib版本
python -c “import matplotlib; print matplotlib.version.version”
或
python -c “import matplotlib; print matplotlib.version”
查看Matplotlib安装路径
python -c “import matplotlib; print matplotlib.file”
升级包
可以用pip命令:pip install -U <包名>
或: pip install <包名> –upgrade
Matplotlib,SciPy在安装时始终报错,决定手动下载包安装(随便两个我下过的地址):
Matplotlib下载地址
Scipy下载地址
下载后直接:
cd XX
python setup.py install
scipy报错: error:library dfftpack has Fortran sources but no Fortran compiler found
也有人遇到了这个错误:问题链接
根据里面的建议,我最后是用 sudo apt-get install libatlas-base-dev gfortran 后再手动安装解决的
备注一个“pip常用命令”:
http://www.cnblogs.com/xueweihan/p/4981704.html
相关文章推荐
- 查看python,numpy,scipy,matplotlib的版本及版本更新
- Python3.5.4对应版本matplotlib的安装过程(含NumPy&SciPy)
- Windows64位下各版本Python安装numpy,SciPy,matplotlib,Ipython模块
- 如何在Linux系统Ubuntu版本下安装Python开发包NumPy、Matplotlib、SciPy
- windows+Mac下安装Python以及科学计算套装安装(scipy、numpy、matplotlib)
- python scipy numpy matplotlib傻瓜式安装
- Python: Ubuntu 安装numpy,scipy,matplotlib
- Python Matplotlib的安装使用及Scipy,numpy,dateutil,pyparsing的安装
- Ubuntu-Python2.7安装 scipy,numpy,matplotlib
- Python中numpy,scipy,matplotlib,opencv的配置过程
- Python+Numpy+Scipy+Matplotlib+IPython(一)
- eclipse+python+numpy+scipy+matplotlib
- ubuntu 下 python numpy,scipy,matplotlib安装
- Ubuntu-Python2.7安装 scipy,numpy,matplotlib
- 【python】python path,macports,easy-install,numpy,scipy,ipython,matplotlib,集成工具
- python:安装numpy, Scipy,Matplotlib
- Ubuntu-Python2.7安装 scipy,numpy,matplotlib
- Python画图库 matplotlib, 数值计算库 numpy, 科学计算库 scipy 的安装
- Python 学习之三:NumPy,SciPy,Matplotlib教程
- Python下的scipy,matplotlib,Numpy,six安装