'Jupyter' is not recognized as an internal

2019-07-18 03:12发布

问题:

I installed python and jupyter notebook through the Anaconda distribution. I have been successfully using jupyter notebook for weeks and it has run perfectly fine. However, I can only launch a notebook through the Anaconda Navigator GUI.

When I try to run the command (in command prompt) to start a notebook it says

'jupyter' is not recognized as an internal or external command

This is also the same case with Python

'python' is not recognized as an internal or external command

I am using Windows 10. I am assuming its a PATH issue but I have not had any luck with the solutions I found from other posts. I am relatively new to programming and python so any help would be greatly appreciated.

回答1:

I've just fixed this issue on my windows 10 machine. My path contained

C:\Users\user\AppData\Local\Programs\Python\Python37\Scripts\

where 'user' is my windows username, however for some reason jupyter.exe installed in

 C:\Users\user\AppData\Roaming\Python\Python37\Scripts

I'm not really sure why and I'd like to get to the bottom of it, but adding both the local and roaming version to my path fixed this.