ubuntu install mayavi2

直接 sudo apt-get install mayavi2 可以安装在py2.7下。。。。


下面的方法在py3下仍不行。。。。。。没有耐心调下去了。。。。。同时,网上说mayavi就不支持Py3。。。。。。。不知道为啥在我的瞎鼓秋下,在py3下可以import mayavi

但一运行就出错。。。。。算了。。。。还是乖乖用matlabplot吧


sudo apt-get install python-dev libxtst-dev scons python-vtk  pyqt4-dev-tools  python-configobj (python3.6-wxgtk2.8 this one I delete it from the orignal commands)
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev


创建ets目录,并在此目录下下载ets.py,运行ets.py可以复制最新版的ETS源程序,并安装:


mkdir ets
cd ets
wget https://github.com/enthought/ets/raw/master/ets.py
python ets.py clone (if you use py3, these will be some mistakes, dunt worry, you can modify the program by add some brackets)
sudo python ets.py develop (if something wrong about the Cython, please sudo apt-get install Cython,if unable to execute 'swig': No such file or
directory, please  conda install swig)
#sudo python ets.py install    或者运行install安装



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值