IPython Notebook-无法打开 [英] Ipython notebook - fails to open

查看:163
本文介绍了IPython Notebook-无法打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在没有运气的情况下打开ipython笔记本,不知道为什么?

I have tried to open ipython notebook without luck and don't know why?

当我键入命令"ipython notebook"时,我收到的输出是:

When i type the command "ipython notebook", the output i receive is :

-bash:/usr/local/bin/ipython:/usr/local/opt/python/bin/python2.7:错误的解释器:没有这样的文件或目录

-bash: /usr/local/bin/ipython: /usr/local/opt/python/bin/python2.7: bad interpreter: No such file or directory

有帮助吗?

推荐答案

昨天我使用自制软件将python2.7升级到python3时,遇到了同样的问题.尝试了谷歌的建议,但没有人真正解决问题.然后我检查了我的pip,pip3,ipython,ipython2,ipython3和jupyter的第一行.发现问题实际上是jupyter和ipython2的第一行仍指向不再存在的旧python2.7路径"/usr/local/opt/python/bin/python2.7".因此,我刚刚将jupyter的第一行更改为#!/usr/local/opt/python/bin/python3.6",并解决了问题.

I just got the same problem when I upgrade my python2.7 to python3 by using homebrew yesterday. Tried googled suggestions but no one really solved the problem. Then I checked the first line of my pip, pip3, ipython, ipython2, ipython3 and jupyter. Found the problem actually is that the first lines of jupyter and ipython2 still point to the old python2.7 path "/usr/local/opt/python/bin/python2.7" which is not exist anymore. So, I just changed the first line to "#!/usr/local/opt/python/bin/python3.6" for jupyter and the problem solved.

这篇关于IPython Notebook-无法打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆