免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1633 | 回复: 1

如何让jupyter上的代码能在虚拟机centos6.5 上运行? [复制链接]

论坛徽章:
0
发表于 2016-11-11 10:00 |显示全部楼层
如何让jupyter上的代码能在虚拟机centos6.5 上运行?




一、我的安装步骤
=================================================================================================
1、安装centos虚拟机(VMware-player-6.0.3-1895310 + CentOS-6.5-i386-bin-DVD)

2、https://www.continuum.io/downloads下载anaconda的32位linux版本,按照官方网站的说明安装。

3、conda --version

4、pip install qutip

5、测试
   import qutip.testing as qt
   qt.run()
==================================================================================================




二、问题请教
==================================================================================================
重复下面这个example,
http://nbviewer.jupyter.org/gith ... urrent-Biased.ipynb


我复制上面的代码

  1. from scipy import *
  2. from scipy import optimize

  3. from wavefunction import *
  4. from wavefunction.wavefunction1d import *
  5. ....
复制代码

==================================================================================================





三、错误提示
============================================================================================================

  1. ImportError: No module named 'wavefunction'
复制代码


于是我试着安装

  1. conda install wavefunction
  2. pip install wavefunction
复制代码


仍然无果

  1. No matching distribution found for wavefunction
  2. Package not found
复制代码


==================================================================================================


Please help me to resolve this issue about the install of the python 'wavefunction' package


论坛徽章:
0
发表于 2016-11-11 10:03 |显示全部楼层
四、噩梦再袭
==================================================================================================
重复下面这个example,也失败了,
http://nbviewer.jupyter.org/github/qutip/qutip-notebooks/blob/master/examples/example-JC-model-wigner-function.ipynb
==================================================================================================





五、错误提示
============================================================================================================
/root/anaconda3/lib/python3.5/site-packages/IPython/parallel.py:13: ShimWarning: The `IPython.parallel` package has been deprecated. You should import from ipyparallel instead.
  "You should import from ipyparallel instead.", ShimWarning)
/root/anaconda3/lib/python3.5/site-packages/matplotlib/animation.py:784: UserWarning: MovieWriter avconv unavailable
  warnings.warn("MovieWriter %s unavailable" % writer)
Traceback (most recent call last):
  File "/root/anaconda3/lib/python3.5/site-packages/matplotlib/animation.py", line 787, in save
    writer = writers[writers.list()[0]](fps, codec, bitrate,
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "test05.py", line 129, in <module>
    plot_animation(plot_setup, plot_result, result)
  File "/root/anaconda3/lib/python3.5/site-packages/qutip/ipynbtools.py", line 373, in plot_animation
    anim.save(name + '.mp4', fps=10, writer="avconv", codec="libx264")
  File "/root/anaconda3/lib/python3.5/site-packages/matplotlib/animation.py", line 791, in save
    raise ValueError("Cannot save animation: no writers are "
ValueError: Cannot save animation: no writers are available. Please install mencoder or ffmpeg to save animations.

============================================================================================================


请帮帮新手
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP