问题
Issue: I get fatal error when I run jupyter notebook in cmd.exe as administratortor
- in:
python -m pip install jupyter - out:
success - in:
jupyter notebook - out:
Fatal error in launcher: Unable to create process using '"'
Before you down vote please note that I've tried the following, but I get same fatal error when I try to launch jupyter notebook from cmd
- uninstalled jupyter and installed anadonda (https://repo.continuum.io/archive/Anaconda3-5.0.1-Windows-x86_64.exe)
- tried answer listed here but does not resolve the issue (Fatal error in launcher: Unable to create process using ""C:\Program Files (x86)\Python33\python.exe" "C:\Program Files (x86)\Python33\pip.exe"")
- ran
pip3 install --upgrade pipandran pip3 install jupyter - ran
jupyter notebook --helpand I get same error
Environment
- Windows 10 Pro 64-bit version 1709 build 16299.125
- Python 3.6.4 (see sys paths in screen shot below)
screen shot of error https://www.dropbox.com/s/ai0ualjfj87uaaq/python_issue_20180127.png?dl=0
docs used:
- https://jupyter.readthedocs.io/en/latest/install.html
- https://jupyter.readthedocs.io/en/latest/running.html#running
- http://jupyter.readthedocs.io/en/latest/install.html#alternative-for-experienced-python-users-installing-jupyter-with-pip
Thanks in advance!!
回答1:
I believe you need to open Jupyter notebooks by typing jupyter notebook in the anaconda prompt, not the regular windows command prompt.
回答2:
For Windows users that have anaconda installed, try on Windows CMD (better if you run it as admin):
(Assuming your environment is named "root")
activate root
jupyter notebook
Hope that helps
回答3:
In my case, There was one redundant path of python3 added in the environment variable already and I was adding again. I just removed that path and run jupyter notebook through command prompt and it worked perfectly.
回答4:
These command in cmd works:
activate rootjupyter notebook
The second command to open jupyter notebook is :
jupyter-notebook-script.py
I basically try to open notebooks with jupyter lab so what I have done is the following:
- 1.Right-click on any notebook select "open with" then select "choose another app"
- Now select "look for another app in pc"
- Go to the directory where your Anaconda Scripts are present. For me it's
C:\ProgramData\Anaconda3\Scripts - Select "jupyter-notebook.exe" or "jupyter-lab.exe"
Now every notebook will open automatically just by hitting enter and no need to type the command again and again
回答5:
I know this sounds strange ... But I ran:
python -m pip install jupyter
I did this inside my Anaconda (which I shouldn't have to do) and it installed jupyter... fixed the issue for me
回答6:
For those ones who do not have anaconda
python -m jupyter notebook
回答7:
I was using the Python37 installation from the Microsoft store, when I suddenly got the 'Fatal error in launcher: Unable to create process' error while trying to start the jupyter notebook. I actually tried every answer here, but with no succees.
The solution was to completely uninstall/delete everything Python/Jupyter related from AppData as well as the leftovers from my preceeding Anaconda installation and then go for a clean install from python.org.
I guess this is something we all have to do from time to time.
回答8:
Check in to your Environment Variable Paths. If you had installed both Python(Python 2.x.x) or Python3(Python 3.x.x) you will have a problem running Scripts file of python, since you had duplicated install. Uninstall the redundant one.
If you had tried to fix it multiple times and nothing works, try re-install your Python. This save lives every time.
来源:https://stackoverflow.com/questions/48480173/fatal-error-when-starting-jupyter-notebook