简体   繁体   English

Jupyter 不会在 Windows10 上从 Anaconda3 启动

[英]Jupyter wont launch from Anaconda3 on Windows10

I've recently installed Anaconda3 32bit version on Windows 10 but Jupyter won't launch.我最近在 Windows 10 上安装了 Anaconda3 32 位版本,但 Jupyter 无法启动。

  • I've updated anaconda using conda and everything looked ok with all packages including Jupyter downloading.我已经使用 conda 更新了 anaconda,并且所有软件包(包括 Jupyter 下载)看起来一切正常。
  • I've added the path to environmental variables.我已经添加了环境变量的路径。
  • I've tried to run jupyter notebook from cmd prompt but still get the same error message.我尝试从cmd提示符运行 jupyter notebook,但仍然收到相同的错误消息。

Trace:痕迹:

Traceback (most recent call last): File "C:\Users\Edward\anaconda3\Scripts\jupyter-notebook-script.py", line 6, in 
from notebook.notebookapp import main 
ModuleNotFoundError: No module named 'notebook.notebookapp'; 'notebook' is not a package

If jupyter is installed on your system you can also use cmd to open i as:如果您的系统上安装了 jupyter,您还可以使用 cmd 将 i 打开为:

jupyter notebook

If not then u can use pip to install jupyter:如果没有,那么您可以使用 pip 安装 jupyter:

pip install jupyterlab

or或者

pip install notebook

Then you can use cmd to open.然后就可以用cmd打开了。

Maybe you did not download the latest version of Python.也许您没有下载最新版本的 Python。 Try downloading Python 3.9 first and see.首先尝试下载 Python 3.9 并查看。

You can also download jupyter notebook from your OS terminal.您还可以从操作系统终端下载 jupyter notebook。

Thanks, but I have tried these ideas.谢谢,但我已经尝试过这些想法。 The root of the problem (pun not intended!) is in the path definitions I think.问题的根源(不是双关语!)在我认为的路径定义中。 I have tried adding path definitions.我尝试添加路径定义。 But things that used to work fine like running pip from the C:\\ prompt no longer do.但是过去可以正常工作的事情,例如从 C:\\ 提示符运行 pip 不再有效。 So I have given up on Anaconda and now use Visual Studio Code for everything, including running a Jupyter Notebook.所以我已经放弃了 Anaconda,现在一切都使用 Visual Studio Code,包括运行 Jupyter Notebook。

Don't know why the system path definition doesn't work.不知道为什么系统路径定义不起作用。 If I go to the directory containing pip it runs ok.如果我转到包含 pip 的目录,它运行正常。

Many Thanks非常感谢

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

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