英文:
Anaconda Navigator doesn't launch Jupyter Notebook
问题
我真的对编程很陌生(我在经济学专业毕业,现在尝试学习Python,没有任何经验),刚刚下载了Anaconda开始我的学徒工作。
由于我的用户在"C:"目录中的名字和姓氏之间有一个空格,我在"C: > Anaconda"中创建了一个新文件夹来安装程序。我以管理员身份运行安装程序,并选择了这个文件夹作为目标。
安装完成后,我尝试从Anaconda Navigator启动Jupyter Notebook。然后我可以在导航器底部看到一个消息"Launching notebook",以及一个加载进度条。然而,它消失了,什么都没有发生。
我在这里阅读了一些其他与我有相同问题的人的帖子,但是没有一个解决方案适用于我。当我尝试从Anaconda提示符中启动Jupyter Notebook时,我收到以下消息:
阅读迁移到Notebook 7的迁移计划,了解新功能和如果使用扩展程序时需要采取的操作。
https://jupyter-notebook.readthedocs.io/en/latest/migrate_to_notebook7.html
请注意,更新到Notebook 7可能会破坏一些扩展程序。
[W 12:11:52.005 NotebookApp] 将JupyterLab加载为经典笔记本(v6)扩展。
[C 12:11:52.005 NotebookApp] 您必须使用Jupyter Server v1来加载JupyterLab作为笔记本扩展。您已安装v2.5.0。
您可以通过执行以下命令来修复此问题:
pip install -U "jupyter-server<2.0.0"
[I 12:11:54.615 NotebookApp] 端口8888已经在使用中,尝试使用另一个端口。
[I 12:11:54.627 NotebookApp] 从本地目录中提供笔记本:C:\Users\Tomás Mello
[I 12:11:54.627 NotebookApp] Jupyter Notebook 6.5.4正在运行:
[I 12:11:54.627 NotebookApp] http://localhost:8889/?token=c212526e4794b6e54e3e00c5cb3581bb97497b5b5775efe9
[I 12:11:54.627 NotebookApp] 或者 http://127.0.0.1:8889/?token=c212526e4794b6e54e3e00c5cb3581bb97497b5b5775efe9
[I 12:11:54.627 NotebookApp] 使用Ctrl-C停止此服务器并关闭所有内核(按两次以跳过确认)。
[C 12:11:54.665 NotebookApp]
要访问笔记本,请在浏览器中打开此文件:
file:///C:/Users/Tom%C3%A1s%20Mello/AppData/Roaming/jupyter/runtime/nbserver-25888-open.html
或者复制并粘贴以下URL之一:
http://localhost:8889/?token=c212526e4794b6e54e3e00c5cb3581bb97497b5b5775efe9
或者 http://127.0.0.1:8889/?token=c212526e4794b6e54e3e00c5cb3581bb97497b5b5775efe9
你能帮我吗?如果我犯了任何语法错误(英语不是我的母语),如果需要进一步的解释,请告诉我。
干杯!
我尝试检查安装的文件是否有任何问题,但没有找到任何异常的东西(但是再次说明,我不擅长识别安装错误)。
英文:
I'm really new to coding (I graduated in Economics and trying to learng Python, with no prior experience) and just downloaded Anaconda to start my apprenticeship.
Since my user in the "C:" directory has one space between my name and my surname, I create a new folder in "C: > Anaconda" to install the program. I ran the installer as administrator and selected this folder as destiny.
After the installation was finished, I tried launching Jupyter Notebook from the Anaconda Navigator. Then I can see a message "Launching notebook" on the bottom of the navigator, along with a loading bar. However, it disappears and nothing happens.
I read some other topics here with people with the same problem as mine but none of the solutions worked for me. When I try lauching Jupyter Notebook from the Anaconda prompt I receive the following message:
Read the migration plan to Notebook 7 to learn about the new features and the actions to take if you are using extensions.
https://jupyter-notebook.readthedocs.io/en/latest/migrate_to_notebook7.html
Please note that updating to Notebook 7 might break some of your extensions.
[W 12:11:52.005 NotebookApp] Loading JupyterLab as a classic notebook (v6) extension.
[C 12:11:52.005 NotebookApp] You must use Jupyter Server v1 to load JupyterLab as notebook extension. You have v2.5.0 installed.
You can fix this by executing:
pip install -U "jupyter-server<2.0.0"
[I 12:11:54.615 NotebookApp] The port 8888 is already in use, trying another port.
[I 12:11:54.627 NotebookApp] Serving notebooks from local directory: C:\Users\Tomás Mello
[I 12:11:54.627 NotebookApp] Jupyter Notebook 6.5.4 is running at:
[I 12:11:54.627 NotebookApp] http://localhost:8889/?token=c212526e4794b6e54e3e00c5cb3581bb97497b5b5775efe9
[I 12:11:54.627 NotebookApp] or http://127.0.0.1:8889/?token=c212526e4794b6e54e3e00c5cb3581bb97497b5b5775efe9
[I 12:11:54.627 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 12:11:54.665 NotebookApp]
To access the notebook, open this file in a browser:
file:///C:/Users/Tom%C3%A1s%20Mello/AppData/Roaming/jupyter/runtime/nbserver-25888-open.html
Or copy and paste one of these URLs:
http://localhost:8889/?token=c212526e4794b6e54e3e00c5cb3581bb97497b5b5775efe9
or http://127.0.0.1:8889/?token=c212526e4794b6e54e3e00c5cb3581bb97497b5b5775efe9
Can you help me out? I'm sorry if I commited any grammar mistakes (english is not my native language) and if any further explanation is necessary please let me know.
Cheers!
I tried checking if there was any problem in the files that were installed and couldn't find anything that seemed unusual (but again, I'm not experienced in identifying installation bugs)
答案1
得分: 0
每个人都会经历这个过程,很好你正在尝试,你也可以尝试使用Visual Studio Code,它也相当简单,可能需要一些视频教程来设置。
关于这个问题,你是否尝试按照Anaconda提示中的步骤进行操作?
你可以将提到的链接复制到任何浏览器中,如Google Chrome、Microsoft Edge等。
将以下内容复制粘贴到浏览器中:
http://localhost:8889/?token=c212526e4794b6e54e3e00c5cb3581bb97497b5b5775efe9
或者这个:
http://127.0.0.1:8889/?token=c212526e4794b6e54e3e00c5cb3581bb97497b5b5775efe9
我相信它会打开Jupyter Notebook。
英文:
Everyone goes through this, it's great that you are trying, you can also try visual studio code, it is fairly simple too, might need some video tutorial to set it up.
Regarding this issue, did you try follow the steps in the anaconda prompt?
You can copy the links mentioned in any browser of choice. Like Google Chrome, Microsoft edge etc.
Copy paste this into the browser
http://localhost:8889/?token=c212526e4794b6e54e3e00c5cb3581bb97497b5b5775efe9
Or this one
http://127.0.0.1:8889/?token=c212526e4794b6e54e3e00c5cb3581bb97497b5b5775efe9
Pretty sure it would open jupyter notebook.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论