ubuntu 安装numpy和matplotlib
来源:互联网 发布:qq飞升锻体进阶数据 编辑:程序博客网 时间:2024/05/16 06:33
numpy是一个python开发的函数库,常用于科学计算
matplotlib是一个python开发的绘图库,常用与绘制统计数据的图形
在安装numpy和matplotlib前,建议先安装virtualenv(虚拟环境),我们可以在虚拟环境中安装软件或程序包,这样的好处是:可以在不影响ubuntu系统环境的情况下安装包或者运行程序,如果在这个过程中你安装失败,完全可以删除虚拟环境,重新建立虚拟环境并重新安装。当然,不安装virtualenv也是可以安装numpy和matplotlib的。
安装virtualenv的方法很简单:
sudo apt-get install python-virtualenv
安装后,通过以下命令建立虚拟环境
sudo virtualenv ML-venv
当然,如果你想指定这个虚拟环境中的python版本,可以使用如下命令:
sudo virtualenv --python=python2.7 ML-venv
在本次安装中,使用的python版本是2.7
新建好虚拟环境后,通过source命令进入虚拟环境
source ML-venv/bin/activate
(推出虚拟环境的命令是 : deactivate)
1.安装numpy
pip install numpy
2.安装matplotlib
pip install matplotlib
如果提示下面的错误:
ImportError: matplotlib requires dateutil 或 ImportError: matplotlib requires pyparsing
在下面的网站http://www.lfd.uci.edu/~gohlke/pythonlibs/中,搜索python-dateutil和pyparsing并安装。
由于这两种文件都是whl格式的,安装命令为:wheel install python-dateutil.whl
0 0
- ubuntu 安装numpy和matplotlib
- Ubuntu下安装numpy和matplotlib包
- 安装numpy和matplotlib
- ubuntu下安装numpy,matplotlib
- Ubuntu安装numpy,scipy,matplotlib
- Ubuntu 安装numpy,scipy,matplotlib
- ubuntu安装numpy,matplotlib等
- Numpy和Matplotlib的安装
- python安装numpy和matplotlib
- centos7 安装 matplotlib和numpy
- win7安装numpy和matplotlib
- Ubuntu-Python2.7安装 scipy,numpy,matplotlib
- ubuntu 下 python numpy,scipy,matplotlib安装
- Ubuntu-Python2.7安装 scipy,numpy,matplotlib
- Ubuntu-Python2.7安装 scipy,numpy,matplotlib
- Ubuntu下安装numpy and matplotlib
- ubuntu下安装numpy and matplotlib
- Ubuntu下安装numpy and matplotlib
- JSON解析
- 用代码窥探Java支持的语言
- Sell编程(2)扫描监控指定类型文件并报告是否增加
- Color Transfer
- Java数据结构与算法之年龄判断
- ubuntu 安装numpy和matplotlib
- 一些VR渲染优化方法
- uva 10118 动规
- 【小练】树状数组&线段树
- 表达式 -- 2015/09/22
- 练习9.2
- Java数据结构与算法之2的n次方判定
- systemctl 命令用法
- Codeforces Round #321 (div. 2)