[英]ModuleNotFoundError: No module named 'jupyter_core'
I am using a windows machine to start Jupyter notebook server on a virtual Ubuntu 16.04.我正在使用 windows 机器在虚拟 Ubuntu 16.04 上启动 Jupyter Notebook 服务器。 I expect a URL as an output which I can paste in inte.net browser and run a.ipynb file.
我希望 URL 为 output,我可以将其粘贴到 inte.net 浏览器中并运行 a.ipynb 文件。
jupyter notebook --ip 0.0.0.0
is producing the following error after I have upgraded Python to 3.7.将 Python 升级到 3.7 后,
jupyter notebook --ip 0.0.0.0
出现以下错误。
*(Earlier to upgradation, the jupyter notebook was working fine) *(升级之前,jupyter notebook 运行良好)
pkj_admin@ip-50-60-0-75:~$ jupyter notebook --ip 0.0.0.0
Traceback (most recent call last):
File "/usr/local/bin/jupyter", line 5, in <module>
from jupyter_core.command import main
ModuleNotFoundError: No module named 'jupyter_core'
Thanks谢谢
I too faced this issue.我也遇到过这个问题。 I solved it using:
我使用以下方法解决了它:
pip3 install jupyter
This worked for me这对我有用
sudo apt install python3-jupyter-core
This is a very common issue with jupyter notebook.这是 jupyter notebook 的一个非常常见的问题。 It says
jupyter_core
not found with current installation packages.它说
jupyter_core
not found with current installation packages。 It is messed up with paths.它被路径弄乱了。
jupyter_core
might be installed locally but it is looking at root or sys python version.jupyter_core
可能安装在本地,但它正在查看 root 或 sys python 版本。 Try to uninstall there and reinstalljupyter
.尝试在那里卸载并重新安装
jupyter
。
>> python -m pip uninstall jupyter-core;python -m pip uninstall jupyter;
# inside conda env or similar env
>> pip uninstall jupyter
>> pip install jupyter
Ref: How to remove jupyter.参考: 如何删除 jupyter.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.