无法从 anaconda 启动 ipython notebook
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27206441/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
can not start ipython notebook from anaconda
提问by Hello lad
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
采纳答案by Phil Cooper
Could be a couple of things:
可能是几件事:
conda installs ipython into the active conda environment. If bash had seen a previous invocation of ipython it might have that location hashed.
conda 将 ipython 安装到活动的 conda 环境中。如果 bash 之前看到过对 ipython 的调用,它可能会对该位置进行哈希处理。
Run hash -r
to clear the shell hashed lookups after installing anything that places a new executable in your path. Things like:
hash -r
在安装任何在您的路径中放置新的可执行文件后,运行以清除 shell 哈希查找。像:
- ipython
- pip
- binstar
- ...
- 蟒蛇
- 点子
- 宾星
- ...
回答by JKC
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 notebook 已成为 jupyter notebook 最新安装的 Anaconda (v3.x)。
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 notebook