cod*_*321 5 python macos bash ipython
我在尝试使用IPython时遇到随机错误.我现在突然无法使用iPython3而没有任何解释,我不记得安装除了以太坊客户端之外的任何东西,我没有下载哈希或任何东西.我突然得到:
cchilders:~
$ ipython3
-bash: /usr/local/bin/ipython3: /usr/local/opt/python3/bin/python3.5: bad interpreter: No such file or directory
Run Code Online (Sandbox Code Playgroud)
IPython或IPython3都没有工作.在卸载并重新安装Python和Python3之后,我现在可以使用IPython.但是,如果我尝试iPython3,就会出现同样的错误.
这是我见过的更荒谬的错误之一,因为我重新安装了IPython,Python本身和Python3而没有任何变化.
Flo*_*oyd 18
如上所述这里,问题是,ipython3试图使用在python3.5内核/usr/local/opt/python3/bin/python3.5.您可以通过运行来查看ipython3尝试使用的内核:
jupyter kernelspec list
Run Code Online (Sandbox Code Playgroud)
然后查看kernel.jsonpython3内核路径中的文件(在我的例子中,kernel.json的路径是:) /usr/local/share/jupyter/kernels/python3/kernel.json.
为了解决这个问题,我不得不重新安装以下所有jupyter包:
$ pip3 uninstall jupyter jupyter-client jupyter-console jupyter-core
$ pip3 install jupyter jupyter-client jupyter-console jupyter-core
Run Code Online (Sandbox Code Playgroud)