【jupyter notebook】'jupyter' is not recognized as an internal or external command, operable program or batch file.

Table of contents

0. Problem background + environment introduction

1. Solution steps

2. Test steps


0. Problem background + environment introduction

1) Environment : windows64

2) Problem background : In the process of building jupyter notebook, I want to use the task manager of windows to start jupyter notebook or use [jupyter notebook --generate-config] and other commands to configure some parameters. After installing anaconda, directly [win+ R] Enter [cmd] to open the task manager, and directly enter [jupyter notebook], an error will be reported, and the error will be ['jupyter' is not an internal or external command, nor is it a runnable program or batch file]

After the solution is resolved, the error message will no longer be displayed:

 1. Solution steps

1) Principle: need to configure environment variables

2) Open the anaconda download location, find the file-Scripts folder under

jupyter-notebook.exe 

My location is: [D:\appDownload\anaconda\file\Scripts], copy this address

3) Open the system environment variable (directly search in win)

 4) Open [Environment Variables]

 5) Find [Path] in [System Variables]

 6) After clicking Edit, click [New] in [Edit Environment Variables], and paste the path you copied just now (in step 2)

7) Click three to confirm, note that there must be three, otherwise the configuration will not be available

 

 So far the configuration is complete

2. Test steps

1) [win+R] input [cmd] to reopen the task manager, pay attention to reopening here

2) Enter [jupyter notebook], you can open it directly on the web page, and no more errors will be reported

At this point, the test is complete

--END--

Guess you like

Origin blog.csdn.net/qq_41539778/article/details/131040821