Jupyter Notebook无法从命令提示符下打开 [英] Jupyter notebook will not open from command prompt

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

问题描述

我正在尝试在Windows 10(64位)上使用Jupyter Notebook.我下载了Anaconda3 5.0.1.现在,我应该能够通过在命令行中键入jupyter notebook来打开jupyter笔记本.但是我收到以下错误:

I am trying to work with Jupyter notebook on Windows 10 (64-bit). I downloaded Anaconda3 5.0.1. Now I should be able to open the jupyter notebook from the command prompt by typing jupyter notebook. However I get the following error:

我能够打开jupyter笔记本的唯一方法是从Anaconda导航器中进行.但是,我想更改笔记本从中打开的目录,并且这里没有任何解决方案如果无法从命令提示符下打开jupyther,如何更改Jupyter启动文件夹将起作用.我已经尝试卸载并重新安装anaconda,但这并没有改变任何内容.

The only way I am able to open jupyter notebook is from the Anaconda navigator. However, I would like to change the directory from which the notebook opens and none of the solutions here How to change the Jupyter start-up folder work if I cannot open jupyther from the command prompt. I have already tried uninstalling and reinstalling anaconda, but that did not change anything.

推荐答案

此错误是因为在安装Anaconda之后没有设置环境. 请按照以下步骤解决此问题

This error is because you didn't set environment after installing Anaconda. Go through following steps to solve this issue

  1. 在开始位置编辑系统环境变量"中搜索并打开它.
  2. 单击环境变量按钮
  3. 转到此处并添加2个安装Anaconda的目录路径

  1. Search in start "Edit the system environment variable" and open it.
  2. Click environment variables button
  3. Go to there and add 2 directory path where you installed Anaconda

  i.e. 1. C:\ProgramData\Anaconda3 
       2. C:\ProgramData\Anaconda3\Scripts 

希望这可以解决您的错误:)

Hope this will solve your error :)

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

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