jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.74k stars 4.98k forks source link

jupyter.exe isntalled in the wrong location on windows #4195

Open david-waterworth opened 6 years ago

david-waterworth commented 6 years ago

After running

> python -m pip install jupyter

I was unable to run

> jupyer notebook

as per the instructions. I did some searching, my python environment has the following scripts folder which was added to the path at install

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

Adding this to the path fixed the issue (also fixed vscode integration). Not sure if I've screwed up my install, or jupyter isn't correctly identifying the installation type?

Edit: to be clear, I'm running python 3.7 x64 on windows 10

Quisl commented 4 years ago

Make sure you don't have both paths in your %PATH% to prevent messing up the system, there should be only one Scripts folder on your system (or virtual env). Did you install Python twice?

However, the jupyer.exe will be created in the active scripts folder by force reinstalling it:

pip install jupyter --force-reinstall
stevegeo commented 3 years ago

I found a similar issue, .. in Win10, .. although I mistakenly did a pip install as 'normal user' and everything ended up in C:\Users\\AppData\Roaming\Python\Python38\Scripts I did a pip uninstall (I dont think it removed everything though)

Windows 10 , Version 1909, OS build 18363.1198 After installation using following command as administrator

pip3 install notebook

Cannot start

jupyter notebook

Found missing jupyter.exe in Python38\Scripts (seems everything but jupyter.exe)

C:\windows\system32>dir "\Program Files\Python38\Scripts" Volume in drive C is Windows Volume Serial Number is 640B-C07A

Directory of C:\Program Files\Python38\Scripts

19/11/2020 03:58 PM

. 19/11/2020 03:58 PM .. 07/09/2020 09:32 PM 106,358 easy_install-3.8.exe 07/09/2020 09:32 PM 106,358 easy_install.exe 19/11/2020 03:58 PM 106,361 jupyter-bundlerextension.exe 19/11/2020 03:58 PM 106,346 jupyter-console.exe 19/11/2020 03:58 PM 106,349 jupyter-nbconvert.exe 19/11/2020 03:58 PM 106,348 jupyter-nbextension.exe 19/11/2020 03:58 PM 106,347 jupyter-notebook.exe 19/11/2020 03:58 PM 100,206 jupyter-qtconsole.exe 19/11/2020 03:58 PM 106,352 jupyter-serverextension.exe 07/09/2020 09:35 PM 106,341 mako-render.exe 07/09/2020 09:35 PM 106,342 markdown_py.exe 07/09/2020 09:36 PM 106,349 pip.exe 07/09/2020 09:36 PM 106,349 pip3.8.exe 07/09/2020 09:36 PM 106,349 pip3.exe 07/09/2020 09:35 PM 106,362 pyside2-designer.exe 07/09/2020 09:35 PM 106,354 pyside2-lupdate.exe 07/09/2020 09:35 PM 106,352 pyside2-rcc.exe 07/09/2020 09:35 PM 106,352 pyside2-uic.exe 18 File(s) 1,908,175 bytes 2 Dir(s) 432,445,165,568 bytes free

notebook will successfully run if I use command

jupyter-notebook

C:\windows\system32>jupyter-notebook --version 6.1.5

Searching my harddisk I found I did have a jupyter.exe on the roaming directory above. (left over from the normal user install ?)

Copying that to C:\Program Files\Python38\Scripts I could run jupyter normally

with the copied version of jupyter.exe in correct location.

C:\Program Files\Python38\Scripts>jupyter --version jupyter core : 4.7.0 jupyter-notebook : 6.1.5 qtconsole : 4.7.7 ipython : 7.19.0 ipykernel : 5.3.4 jupyter client : 6.1.7 jupyter lab : 2.2.9 nbconvert : 6.0.7 ipywidgets : 7.5.1 nbformat : 5.0.8 traitlets : 5.0.5

C:\Program Files\Python38\Scripts>path PATH=C:\Program Files\Python38\Scripts\;C:\Program Files\Python38\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\TortoiseGit\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Sennheiser\SoftphoneSDK\;C:\Users\stgeorge\AppData\Local\Microsoft\WindowsApps;