安装问题并成功运行ipython笔记本

时间:2014-03-08 01:08:33

标签: python ipython ipython-notebook

我已经为ipython和其他一些基本的python库安装了python 3.3.0和所有的包依赖项。

http://www.lfd.uci.edu/~gohlke/pythonlibs/#ipython

但是每当我在Windows 7中将命令提示符导航到“C:\ Python33 \ Scripts”目录并运行命令时:

ipython notebook --pylab inline 

正如本网站(开放技术学院)所建议的那样,它不会像我们通常那样在网络浏览器中显示ipython笔记本吗?:

http://opentechschool.github.io/python-data-intro/core/notebook.html

我无法想象我可能做错了什么:我安装了python 3.3.0和所有3.3二进制安装程序:

http://www.lfd.uci.edu/~gohlke/pythonlibs/

我的路径变量(右键单击我的计算机选择属性>高级系统设置(左侧)>然后“高级”选项卡>环境变量:

My Path变量位于较低的“系统变量”部分?它是否也需要位于上部“用户变量”部分?或者代替?

我的Path“系统变量”的内容是:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Python33\Scripts;C:\Python33\

请帮我弄清楚为什么我的ipython笔记本安装没有在我的默认firefox网络浏览器中打开?

我收到错误:

C:\Python33\Scripts>ipython notebook --pylab inline
'ipython' is not recognized as an internal or external command,
operable program or batch file.

按照建议尝试ipython3,但得到了以下错误:

C:\Python33\Scripts>ipython3 notebook --pylab inline
Traceback (most recent call last):
  File "C:\Python33\Scripts\ipython3-script.py", line 9, in <module>
    load_entry_point('ipython==1.2.1', 'console_scripts', 'ipython3')()
  File "C:\Python33\lib\site-packages\IPython\__init__.py", line 118, in start_i
python
    return launch_new_instance(argv=argv, **kwargs)
  File "C:\Python33\lib\site-packages\IPython\config\application.py", line 544,
in launch_instance
    app.initialize(argv)
  File "<string>", line 2, in initialize
  File "C:\Python33\lib\site-packages\IPython\config\application.py", line 89, i
n catch_config_error
    return method(app, *args, **kwargs)
  File "C:\Python33\lib\site-packages\IPython\terminal\ipapp.py", line 312, in i
nitialize
    super(TerminalIPythonApp, self).initialize(argv)
  File "<string>", line 2, in initialize
  File "C:\Python33\lib\site-packages\IPython\config\application.py", line 89, i
n catch_config_error
    return method(app, *args, **kwargs)
  File "C:\Python33\lib\site-packages\IPython\core\application.py", line 373, in
 initialize
    self.parse_command_line(argv)
  File "C:\Python33\lib\site-packages\IPython\terminal\ipapp.py", line 307, in p
arse_command_line
    return super(TerminalIPythonApp, self).parse_command_line(argv)
  File "<string>", line 2, in parse_command_line
  File "C:\Python33\lib\site-packages\IPython\config\application.py", line 89, i
n catch_config_error
    return method(app, *args, **kwargs)
  File "C:\Python33\lib\site-packages\IPython\config\application.py", line 474,
in parse_command_line
    return self.initialize_subcommand(subc, subargv)
  File "<string>", line 2, in initialize_subcommand
  File "C:\Python33\lib\site-packages\IPython\config\application.py", line 89, i
n catch_config_error
    return method(app, *args, **kwargs)
  File "C:\Python33\lib\site-packages\IPython\config\application.py", line 405,
in initialize_subcommand
    subapp = import_item(subapp)
  File "C:\Python33\lib\site-packages\IPython\utils\importstring.py", line 42, i
n import_item
    module = __import__(package, fromlist=[obj])
  File "C:\Python33\lib\site-packages\IPython\html\notebookapp.py", line 38, in
<module>
    from jinja2 import Environment, FileSystemLoader
  File "C:\Python33\lib\site-packages\jinja2\__init__.py", line 33, in <module>
    from jinja2.environment import Environment, Template
  File "C:\Python33\lib\site-packages\jinja2\environment.py", line 13, in <modul
e>
    from jinja2 import nodes
ImportError: cannot import name nodes

C:\Python33\Scripts>

0 个答案:

没有答案