centos7 安装 matplotlib和numpy
来源:互联网 发布:批发源码 编辑:程序博客网 时间:2024/06/05 06:56
自己在网上买了一个云服务器,在安装matplotlib和numpy方面花了不少力气,以下也是在网上找到的教程。
我仅作为搬运,亲测没有问题,希望对大家有用。
安装 matplotlib
1.yum search matplotlib
返回结果是:
[root@dn1 Desktop]# yum search matplotlib
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.btte.NET
* extras: mirrors.btte.Net
* updates: mirrors.skyshe.cn
=========================== N/S matched: matplotlib ============================
Python-matplotlib-doc.x86_64 : Documentation files for python-matplotlib
python-matplotlib-qt4.x86_64 : Qt4 backend for python-matplotlib
python-matplotlib-tk.x86_64 : Tk backend for python-matplotlib
python-matplotlib.x86_64 : Python 2D plotting library
选择最下方的那个,安装
2.yum install python-matplotlib.x86_64
它会把一切依赖给你装上。完毕。
安装numpy
安装相关工具。
[root@localhostmyhaspl]# yum install wget
[root@localhostmyhaspl]# yum install unzip
[root@localhostmyhaspl]# yum install gcc
[root@localhostnumpy-1.9.0]# yum install Python-devel
1、下载numpy源码并解压。
[root@localhostmyhaspl]# wget http://jaist.dl.sourceforge.NET/project/numpy/NumPy/1.9.0/numpy-1.9.0.zip
2、安装numpy。
[root@localhostmyhaspl]# unzip numpy-1.9.0.zip
[root@localhostmyhaspl]# cd numpy-1.9.0
[root@localhostnumpy-1.9.0]# python setup.py install
3、安装完毕后,重启 。
[root@localhostnumpy-1.9.0]# reboot
4、测试是否安装成功,如果能导入numpy库,表示安装成功。
[myhaspl@localhost~]$ python
Python2.7.5 (default, Jun 17 2014, 18:11:42)
[GCC4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2
Type”help”, “copyright”, “credits” or”license” for more information.
import numpy as np
参考:
[1] http://blog.csdn.net/vickyrocker1/article/details/49070733
[2] http://blog.csdn.net/genghaihua/article/details/44305949
- centos7 安装 matplotlib和numpy
- 安装numpy和matplotlib
- ubuntu 安装numpy和matplotlib
- Numpy和Matplotlib的安装
- python安装numpy和matplotlib
- win7安装numpy和matplotlib
- 安装scipy和numpy还有matplotlib
- Ubuntu下安装numpy和matplotlib包
- Python-PyCharm安装numpy和matplotlib
- windows下安装pillow,numpy和matplotlib
- Python安装Numpy,SciPy和MatplotLib
- windows下安装numpy,scipy和matplotlib
- Ubuntu14.04下安装numpy 和 matplotlib
- Numpy,SciPy和MatplotLib 安装 -- python
- python安装 numpy、matplotlib 和scipy
- matplotlib,numpy自己动手安装
- 安装numpy、scipy、matplotlib
- python+numpy+matplotlib安装
- J
- eclipse窗口基础认识
- 插入排序的原理
- 2017 计蒜之道 初赛 第一场 A题B题
- Tensorflow升级1.0版本
- centos7 安装 matplotlib和numpy
- The Suspects(POJ-1611)
- gps 简介---之一
- win10配置java环境变量,解决javac不是内部或外部命令等问题
- 图的遍历以及二叉树的遍历
- Find Largest Value in Each Tree Row(找出一棵树每一行的最大值)
- 【HDU1421】搬寝室
- 计蒜客 B kmp基础 kmp模板
- POJ 1273 Drainage Ditches 笔记