use*_*451 9 tkinter matplotlib ipython ipython-notebook
我在ubuntu vm上运行IPython笔记本.到目前为止,一切都很好,除了我无法做交互式matplotlib情节.
我得到的错误是: TclError: no display name and no $DISPLAY environment variable
而我只是想尝试遵循这些超级基础教程.
http://nbviewer.ipython.org/github/jakevdp/matplotlib_pydata2013/tree/master/notebooks/
有小费吗?我做了一些研究,但似乎没有什么适用于从ubuntu机器运行iPython.我知道我忽略了一些明显的东西.
在与ThomasK谈到此事后,似乎我需要在iPython中运行%matplotlib nbaggs以下%matplotlib inline来从我的VM中获取交互性.
但是,交互性仅在最新版本的matplotlib(1.4.x)中提供,因此我需要从1.3.x升级.
运行后sudo pip install matplotlib --upgrade,我的.pip_log中出现以下错误.
有什么建议?
----------------------------------------
Cleaning up...
Removing temporary dir /tmp/pip_build_root...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/matplotlib
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1229, in prepare_files
req_to_install.run_egg_info()
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 325, in run_egg_info
command_desc='python setup.py egg_info')
File "/usr/lib/python2.7/dist-packages/pip/util.py", line 697, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/matplotlib
Run Code Online (Sandbox Code Playgroud)
请看这里有一个更好的问题: Linux上的ipython笔记本运行matplotlib与nbagg交互
| 归档时间: |
|
| 查看次数: |
8363 次 |
| 最近记录: |