gpt4 book ai didi

python - 带有 ScipySuperpack 的 IPython 笔记本 : missing markupsafe dependency

转载 作者:行者123 更新时间:2023-12-01 05:38:02 24 4
gpt4 key购买 nike

在 Mac OSX 10.8.4 上。我通过 ScipySuperpack 安装了 IPython。看起来安装得很好。

要启动,我被告知在命令行中输入ipython notebook --pylab=inline

但是我收到以下错误

Traceback (most recent call last):   File "/usr/local/bin/ipython", line 8, in <module>
load_entry_point('ipython==1.0.0-dev', 'console_scripts', 'ipython')() File "/Library/Python/2.7/site-packages/ipython-1.0.0_dev-py2.7.egg/IPython/__init__.py", line 118, in start_ipython
return launch_new_instance(argv=argv, **kwargs) File "/Library/Python/2.7/site-packages/ipython-1.0.0_dev-py2.7.egg/IPython/config/application.py", line 538, in launch_instance
app.initialize(argv) File "<string>", line 2, in initialize File "/Library/Python/2.7/site-packages/ipython-1.0.0_dev-py2.7.egg/IPython/config/application.py", line 89, in catch_config_error
return method(app, *args, **kwargs) File "/Library/Python/2.7/site-packages/ipython-1.0.0_dev-py2.7.egg/IPython/terminal/ipapp.py", line 309, in initialize
super(TerminalIPythonApp, self).initialize(argv) File "<string>", line 2, in initialize File "/Library/Python/2.7/site-packages/ipython-1.0.0_dev-py2.7.egg/IPython/config/application.py", line 89, in catch_config_error
return method(app, *args, **kwargs) File "/Library/Python/2.7/site-packages/ipython-1.0.0_dev-py2.7.egg/IPython/core/application.py", line 361, in initialize
self.parse_command_line(argv) File "/Library/Python/2.7/site-packages/ipython-1.0.0_dev-py2.7.egg/IPython/terminal/ipapp.py", line 304, in parse_command_line
return super(TerminalIPythonApp, self).parse_command_line(argv) File "<string>", line 2, in parse_command_line File "/Library/Python/2.7/site-packages/ipython-1.0.0_dev-py2.7.egg/IPython/config/application.py", line 89, in catch_config_error
return method(app, *args, **kwargs) File "/Library/Python/2.7/site-packages/ipython-1.0.0_dev-py2.7.egg/IPython/config/application.py", line 468, in parse_command_line
return self.initialize_subcommand(subc, subargv) File "<string>", line 2, in initialize_subcommand File "/Library/Python/2.7/site-packages/ipython-1.0.0_dev-py2.7.egg/IPython/config/application.py", line 89, in catch_config_error
return method(app, *args, **kwargs) File "/Library/Python/2.7/site-packages/ipython-1.0.0_dev-py2.7.egg/IPython/config/application.py", line 400, in initialize_subcommand
subapp = import_item(subapp) File "/Library/Python/2.7/site-packages/ipython-1.0.0_dev-py2.7.egg/IPython/utils/importstring.py", line 42, in import_item
module = __import__(package, fromlist=[obj]) File "/Library/Python/2.7/site-packages/ipython-1.0.0_dev-py2.7.egg/IPython/html/notebookapp.py", line 38, in <module>
from jinja2 import Environment, FileSystemLoader File "/Library/Python/2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/__init__.py", line 33, in <module>
from jinja2.environment import Environment, Template File "/Library/Python/2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 13, in <module>
from jinja2 import nodes File "/Library/Python/2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/nodes.py", line 18, in <module>
from jinja2.utils import Markup File "/Library/Python/2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/utils.py", line 520, in <module>
from markupsafe import Markup, escape, soft_unicode ImportError: No module named markupsafe

关于我哪里出错的建议?

最佳答案

我在新安装的 ubuntu 14.04 中也遇到同样的问题

pip install jinja2 好像出了问题,我的解决方案是

pip uninstall jinja2
sudo apt-get install python-jinja2

关于python - 带有 ScipySuperpack 的 IPython 笔记本 : missing markupsafe dependency,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18412136/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com