简体   繁体   English

无法从anaconda启动ipython笔记本

[英]can not start ipython notebook from anaconda

I have installed anaconda into my home directory and added the path to PATH os variable 我已经将anaconda安装到我的主目录中并添加了PATH os变量的路径

and installed ipython notebook in anaconda with command 并使用命令在anaconda中安装了ipython notebook

conda install ipython-notebook

it works fine 它工作正常

after that I opened terminal and typed in 之后我打开终端并输入

ipython notebook

it reported 据报道

Could not start notebook. Please install ipython-notebook

Have I done something wrong on the installation? 我在安装上做错了吗?

The output of 的输出

conda list | grep ipython

is

ipython                   2.3.1                    py27_0  
ipython-notebook          2.3.1                    py27_0  
ipython-qtconsole         2.2.0                    py27_0

Could be a couple of things: 可能是几件事:

conda installs ipython into the active conda environment. conda将ipython安装到活动的conda环境中。 If bash had seen a previous invocation of ipython it might have that location hashed. 如果bash之前已经看过ipython的调用,那么可能会有该位置被散列。

Run hash -r to clear the shell hashed lookups after installing anything that places a new executable in your path. 运行hash -r以在安装在路径中放置新可执行文件的任何内容后清除shell散列查找。 Things like: 像:

  • ipython IPython中
  • pip 果仁
  • binstar binstar
  • ... ...

I know this post is old but still just want to put my answer here so that it may be useful for somebody who has the same question. 我知道这篇文章已经过时但仍然只是想把我的答案放在这里,这样对于那些有同样问题的人来说这可能是有用的。

Ipython notebook has become jupyter notebook with the latest installation of Anaconda (v3.x). Ipython笔记本电脑已成为最新安装的Anaconda(v3.x)的jupyter笔记本电脑。

So going forward, the command "ipython notebook" executed either in the terminal or in the powershell will open Jupyter notebook only 因此,在终端或powershell中执行的命令“ipython notebook”将仅打开Jupyter笔记本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM