ubuntu14.04安裝numpy,scipy
来源:互联网 发布:淘宝店装修要多少钱 编辑:程序博客网 时间:2024/06/14 06:01
在windows下搞python,实在出错太多,就安装了双系统,在ubuntu下试着学习一下,我的ubuntu版本为ubuntu14.04,以前不知道python的这些包之间是有依赖关系的,就在网上按照命令:
sudo apt-get install numpy
进行直接安装,但是当在python下用命令
>>>import numpy>>>numpy.test()>>>import scipy>>>scipy.test()
进行测试的时候,显示numpy包没有安装成功。
numpy测试成功的截图如下:
scipy测试成功的截图如下:
依赖关系:scipy的安装需要依赖于numpy、lapack、atlas(后两者都是线性代数工具包,不清楚的自行google之。。。),而numpy和sci的测试程序的运行又依赖于nose,因此,整个安装过程必须要按顺序执行的,否则是无法执行下去的。
安装详解:
1、先安装nose包。
sudo apt-get install python-nose
这个我试着用pip命令去安装,sudo pip install nose,但是没有成功,可能我命令不对,我就换成了上面的命令,结果安装nose成功。
2、接下来安装各种包。
# 安装gfortran,后面编译过程中会用到sudo apt-get install gfortran# 安装blas,Ubuntu下对应的是libopenblas,其它操作系统可能需要安装其它版本的blas——这是个OS相关的。sudo apt-get install libopenblas-dev# 安装lapack,Ubuntu下对应的是liblapack-dev,和OS相关。sudo apt-get install liblapack-dev# 安装atlas,Ubuntu下对应的是libatlas-base-dev,和OS相关。sudo apt-get install libatlas-base-dev
3、安装numpy
sudo apt-get install python-numpy
可以测试一下numpy是否安装成功,按照最前面的方法。
4、安装scipy
sudo apt-get install python-scipy
装完也可以测试一下。
参考博客:
http://blog.sina.com.cn/s/blog_62dfdc740101aoo6.html
http://blog.csdn.net/xuezhisdc/article/details/47065475
0 0
- ubuntu14.04安裝numpy,scipy
- ubuntu14.04 server python2.7 安装 numpy scipy matplotlib
- ubuntu14.04 server python3.4 安装 numpy scipy matplotlib
- Ubuntu14.04安装jieba、numpy,scipy和matplotlib
- Ubuntu14.04中安装python的gui(idle),并安装jieba,numpy,scipy和matplotlib
- 阿里云ubuntu14.04安装numpy,scipy,gensim总结 ImportError: cannot import name ***
- ubuntu14 python2.7上安装scipy,numpy,matplotlib的方法
- ubuntu14.04安装python scipy
- Scipy + Numpy
- 腾讯云Ubuntu14.04搭建机器学习环境(jupyter和numpy,scipy,matplotlib,pandas,scikit-learn)
- Ubuntu14.04安裝eclipse
- ubuntu14.04+docker安裝
- ubuntu14.04+eigen3安裝
- ubuntu14.04 安裝chrome flash 插件
- ubuntu14.04 + sublime text3安裝
- Numpy, Scipy 搭建
- theano,numpy和scipy
- 安装numpy、scipy、matplotlib
- Eclipse中出现-访问限制由于对必需的库XX具有一定限制,因此无法访问类型
- Camel-Component组件总结
- 自定义cell中的按钮点击事件
- 卷积神经网络在自然语言处理的应用Understanding Convolutional Neural Networks for NLP
- C语言之内存对齐
- ubuntu14.04安裝numpy,scipy
- 京东2016实习生在线笔试
- oracle11g导出DMP不能导空表解决方法
- 【疑难】Android 在 WindowManager 中使用 ListView 点击不响应问题记录
- LeetCode 16 3Sum Closest
- <css二>text
- 深度学习和自然语言处理中的注意和记忆Attention and Memory in Deep Learning and NLP
- 8. 表的分割
- C 语言 —— debug(逻辑错误)