Webby
Webby

Reputation: 347

Fatal Error when starting jupyter notebook

Issue: I get fatal error when I run jupyter notebook in cmd.exe as administratortor

I've tried the following, but I get same fatal error when I try to launch jupyter notebook from cmd

Environment

screen shot of error https://www.dropbox.com/s/ai0ualjfj87uaaq/python_issue_20180127.png?dl=0

docs used:

Upvotes: 10

Views: 30364

Answers (13)

matteblack
matteblack

Reputation: 85

I resolved this problem on Windows by running the Anaconda Prompt as Administrator, and then launching JupyterLab. Launching JupyterLab from the Anaconda Prompt with elevated privileges seems to have solved the issue entirely.

Upvotes: 0

siyunlee
siyunlee

Reputation: 19

Had the same problem what I did was

pip install jupyter

and then, just went ahead and typed

jupyter notebook

works like magic now

Upvotes: 1

Leonidas
Leonidas

Reputation: 21

Had the same problem and tried every suggestion here and in other forums.

In the end, removing the environment via conda remove and then creating it again worked. But I had to update conda via

conda update -n base -c defaults conda

and then start the notebook via jupyter notebook

Upvotes: 0

Rawan Rizq
Rawan Rizq

Reputation: 1

This problem is caused by your antivirus program because I suffered from the same issue, then I discovered that my antivirus software that I am using which is Avast was blocking python.exe file for some reasons that I do not understand. So you should go to your antivirus settings and make an exception for python.exe file to unblock it.

Upvotes: 0

Hari5000
Hari5000

Reputation: 401

What worked for me was the command python -m notebook - I did not have Anaconda installed

Upvotes: 14

EduGord
EduGord

Reputation: 159

For Windows users that have anaconda installed, try on Windows CMD/Powershell (better if you run it as admin):

(Assuming your environment is named "root")

activate root
jupyter notebook

Hope that helps

Upvotes: 6

Niuq
Niuq

Reputation: 191

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.

Upvotes: 0

Peter
Peter

Reputation: 12295

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.

Upvotes: 0

Alibek Jakupov
Alibek Jakupov

Reputation: 620

For those ones who do not have anaconda

python -m jupyter notebook

Upvotes: 0

Yashi Aggarwal
Yashi Aggarwal

Reputation: 405

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.

Upvotes: 3

ProsperousHeart
ProsperousHeart

Reputation: 321

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

Upvotes: 3

Anurag Sharma
Anurag Sharma

Reputation: 51

These command in cmd works:

activate root
jupyter 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. 1.Right-click on any notebook select "open with" then select "choose another app"
    1. Now select "look for another app in pc"
    2. Go to the directory where your Anaconda Scripts are present. For me it's C:\ProgramData\Anaconda3\Scripts
    3. 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

Upvotes: 0

briancaffey
briancaffey

Reputation: 2559

I believe you need to open Jupyter notebooks by typing jupyter notebook in the anaconda prompt, not the regular windows command prompt.

Upvotes: 6

Related Questions