ubuntu16.04安装mlab步骤及错误处理
来源:互联网 发布:linux arp表老化时间 编辑:程序博客网 时间:2024/06/05 00:36
在16.04系统下,安装mlab,想要实现python调用matlab。
其中除了很多问题(importerror: no module named setuptools//cannot complie python.h,)
下面转载的博客都对这些问题的解决有着重要的帮助,感谢各位的记录记忆分享!
一、安装pip:
原文链接:http://blog.csdn.net/lyj_viviani/article/details/70568434
a.进入https://pypi.python.org/pypi/pip,下载第二项 pip-9.0.1.tar.gz
b.解压下载文件:tar -xf pip-9.0.1.tar.gz
c.进入文件pip-9.0.1所在目录: cd /目录/pip-9.0.1
d.安装:sudo python setup.py install
e.测试:pip-v
二、如果报错:
回到主目录(cd)
终端输入:
1.wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
2.tar zxvf setuptools-0.6c11.tar.gz
3.cd setuptools-0.6c11
4.python setup.py install
安装完成setuptools,重复上述c,d步骤
三、安装mlab
打开终端,输入:pip install mlab
四、安装python的科学计算包numpy
终端:pip install numpy
报错:cannot complie python.h
解决:http://blog.csdn.net/u013541140/article/details/51838485
五、mlab环境配置测试
终端输入:python
解释器输入:
from mlab.releases import latest_release
from matlab import matlabroot
print matlabroot()
第三行命令如果能输出你matlab的安装路径,就表明可以用python使用mlab了。
六、调用matlab的自定义函数
from mlab.releases import latest_release as matlab
matlab.plot([2,3,4,5,8,1],'-o') #画个图。很快就显示了
- ubuntu16.04安装mlab步骤及错误处理
- Ubuntu16.04安装mongodb及错误修正
- Ubuntu16.04版安装及卸载VMwareTools的步骤
- Ubuntu16.04安装Nginx步骤
- Ubuntu16.04安装Matlab2015b步骤
- Ubuntu16.04安装ssd的错误及解决方法
- Ubuntu16.04 错误及解决方案
- Ubuntu16.04安装Docker的步骤
- ubuntu16.04下安装mysql详细步骤
- Caffe+Ubuntu16.04+cuda8.0安装步骤
- Ubuntu16.04 安装 ipython详细步骤
- Win10+ubuntu16.04双系统的安装步骤
- ubuntu16.04安装TensorFlow的正确步骤
- ubuntu16.04下OpenBLAS安装步骤
- ubuntu16.04安装及美化
- expdp 导出步骤及错误处理
- python 安装mlab scipy windows
- Ubuntu16.04lTS安装QQ在处理时有错误发生: wine-qqintl
- 数组剔除元素后的乘积
- chmod命令详细用法
- vuejs 移动端解决click 300ms延迟
- collection 和collections有什么区别
- 2017.8.15 阿狸的打字机 失败总结
- ubuntu16.04安装mlab步骤及错误处理
- Django搭建个人博客
- Z
- HDU6124 Euler theorem
- 整数转换成固定位数的字符串
- 定位new表达式
- HTML与CSS的爱恨情仇第三式---第一系列
- Harmonic Number Light oj 调和级数+欧拉常数
- 浅谈Flex布局【CSS】