liunx 环境下 python模块numpy,scipy,matplotlib 安装
2017-08-10 10:33
921 查看
NumPy是一个定义了数值数组和矩阵类型和它们的基本运算的语言扩展。
SciPy是另一种使用NumPy来做高等数学、信号处理、优化、统计和许多其它科学任务的语言扩展。
Matplotlib是一个帮助绘图的语言扩展。
1.首先安装Numpy,它是matplotlib的先行包,里面的很多图形处理函数都要依赖numpy里的数学计算。
1)在Debian或Ubuntu中安装Matplotlib:
$sudo apt-get install Python-numpy
或者:
$sudo pip install numpy
2)在Fedora或CentOS/RHEL环境则可用如下命令:
$sudo yum install numpy
2.安装scipy
$sudo apt-get install libatlas-base-dev gfortran //这一步是后面安装scipy所必需的 ,避免scipy安装失败,确保所需库文
件
或者
$sudo apt-get install python-scipy
$sudo pip install scipy
3.安装matplotlib
1)可以通过如下命令在Debian或Ubuntu中安装Matplotlib:
$ sudo apt-get install python-matplotlib
或者
$sudo
pip install matplotlib
2)在Fedora或CentOS/RHEL环境则可用如下命令:
$ sudo yum install python-matplotlib
注意:
使用pip会装到比较新的版本,而apt-get会比较旧。
如果提示你没有安装pip,可执行 sudo apt-get install python-pip进行安装
如果出错,可以试着执行sudo apt-get install build-essential python-dev
安装时需要用最新版的pip,更新pip:
SciPy是另一种使用NumPy来做高等数学、信号处理、优化、统计和许多其它科学任务的语言扩展。
Matplotlib是一个帮助绘图的语言扩展。
1.首先安装Numpy,它是matplotlib的先行包,里面的很多图形处理函数都要依赖numpy里的数学计算。
1)在Debian或Ubuntu中安装Matplotlib:
$sudo apt-get install Python-numpy
或者:
$sudo pip install numpy
2)在Fedora或CentOS/RHEL环境则可用如下命令:
$sudo yum install numpy
2.安装scipy
$sudo apt-get install libatlas-base-dev gfortran //这一步是后面安装scipy所必需的 ,避免scipy安装失败,确保所需库文
件
或者
$sudo apt-get install python-scipy
$sudo pip install scipy
3.安装matplotlib
1)可以通过如下命令在Debian或Ubuntu中安装Matplotlib:
$ sudo apt-get install python-matplotlib
或者
$sudo
pip install matplotlib
2)在Fedora或CentOS/RHEL环境则可用如下命令:
$ sudo yum install python-matplotlib
注意:
使用pip会装到比较新的版本,而apt-get会比较旧。
如果提示你没有安装pip,可执行 sudo apt-get install python-pip进行安装
如果出错,可以试着执行sudo apt-get install build-essential python-dev
安装时需要用最新版的pip,更新pip:
$sudo pip install --upgrade pip
相关文章推荐
- Ubuntu环境下完美安装python模块numpy,scipy,matplotlib
- 在win7下安装python开发环境和numpy,scipy,matplotlib模块的问题
- windows64位环境下python安装numpy、scipy和matplotlib
- Ubuntu16.04下安装Python扩展包-scipy,numpy,matplotlib(普通环境和virtualenv虚拟环境)
- linux中安装python科学计算环境-numpy、scipy、matplotlib、OpenCV...
- window环境下python安装numpy、scipy、matplotlib等科学计算包
- Ubuntu环境下 安装python工具包numpy,scipy,matplotlib
- Windows64位下各版本Python安装numpy,SciPy,matplotlib,Ipython模块
- windows下安装python科学计算环境,numpy scipy scikit ,matplotlib等
- linux中安装python科学计算环境-numpy、scipy、matplotlib、OpenCV...
- python中的Numpy、MatPlotLib和SciPy模块的安装
- Python搭建Numpy、SciPy、MatPlotLib环境(下载、安装、测试)
- linux中安装python科学计算环境-numpy、scipy、matplotlib、OpenCV...
- windows环境下python2.7、pycharm、numpy_mkl、scipy、sklearn、Matplotlib、jupyter完整安装教程
- windows下python安装Numpy、Scipy、matplotlib模块
- Python模块简介及安装 [numpy,pandas,matplotlib,scipy,statsmodels,Gensim,sklearn,keras]
- python及相关模块库的安装教程,例如pygame,Numpy, Scipy, matplotlib和scikit-learn等模块sklearn库
- 安装配置Python+Numpy+Scipy+Matplotlib环境
- python及常用库numpy、scipy、matplotlib安装与卸载-Windows环境
- windows环境下python2.7、pycharm、numpy_mkl、scipy、sklearn、Matplotlib、jupyter完整安装教程