jupyter / notebook

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

Error: Unable to create process #4656

Open debsdo opened 5 years ago

debsdo commented 5 years ago

I get the following error when trying to open jupyter notebook using Anaconda prompt:

Unable to create process using 'C:\Users\valspirehooha\Anaconda3\envs\tensorflow_cpu\python.exe "C:\Users\valspirehooha\Anaconda3\envs\tensorflow_cpu\Scripts\jupyter-script.py" notebook'

Can anybody help?

octo-weilian commented 5 years ago

I have this problem as well. I was able to run jupyter notebook just fine on my base environment but not on any other environment I created.

ajoros commented 4 years ago

I am have the exact issue as @WilliamTjiong ... any solutions so far?

Wildernessmind commented 4 years ago

My system just developed Same issue today. Anyone with a solution?

debsdo commented 4 years ago

My system just developed Same issue today. Anyone with a solution?

Try opening it from the base environment... worked for me as far as i remember.

debsdo commented 4 years ago

I have this problem as well. I was able to run jupyter notebook just fine on my base environment but not on any other environment I created.

Same.

ghost commented 4 years ago

Strange, it was working just fine today, then suddenly around 16:40, it stopped auto-updating and everything crashed; kernelerrors and I couldn't open jupyter notebook from my created env anymore. Works fine when I try opening it from base, but then I can't import mxnet, a special module which needs its own d2l environment.

Wildernessmind commented 4 years ago

My advice for you is to rebuild your environment by following the steps below:

1. Activate your environment

Open your terminal, and activate your environment with conda activate... 2. Remove the existing environment After the environment is activated, do conda uninstall scikit-learn python and type y where necessary. The command will remove sk-learn, jupyter, pandas etc. 3. Rebuild your environment Once those packages have been successfully removed, rebuild your environment by typing conda install python=3.6.9 jupyter pandas matplotlib scikit-learn=0.22 numpy. Enter y where necessary. Wait for couple of minutes and your environment should be ready. After that enter Jupyter notebook and jupyter notebook should be up and running.

If you have any question, I will be glad to answer them. Good luck.👍🏾

mahakomar11 commented 4 years ago

@triaction2790 It helps me, thank you very much!

rawanrizq commented 3 years ago

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.

denmonz commented 3 years ago

I solved this issue by placing the environment from C:\Users\[my_name_with_a_space]\.conda\envs to C:\Users\Public\.conda\envs. Now that I have a path without a space, it works now.

johanseto commented 3 years ago

for me works uninstalling the environment or creating a new one and from terminal (anaconda prompt )we just install jupyter:

conda create environment conda activate environment conda install jupyter jupyter notebook

Rameshwar0852 commented 3 years ago

new anaconda Updates have Issue

RanafaB18 commented 3 years ago

I get the following error when trying to open jupyter notebook using Anaconda prompt:

Unable to create process using 'C:\Users\valspirehooha\Anaconda3\envs\tensorflow_cpu\python.exe "C:\Users\valspirehooha\Anaconda3\envs\tensorflow_cpu\Scripts\jupyter-script.py" notebook'

Can anybody help?

I solved this issue by copying the python.exe from the Anaconda3 directory and pasting it in the affected environment. Hope it helps someone.

hiyamgh commented 3 years ago

Any solutions? encountering the same problem here.

Rameshwar0852 commented 3 years ago

have you created python config in the environment, and in cmd type python ,,for checking and then quit() after it confirm python is there and then install jupyter notebook by typing pip install notebook and then open it by python -m notebook

On Tue, Nov 2, 2021 at 7:49 PM Hiyam Ghannam @.***> wrote:

Any solutions? encountering the same problem here.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jupyter/notebook/issues/4656#issuecomment-957679231, or unsubscribe https://github.com/notifications/unsubscribe-auth/AISDUZE72MHROHNYJA2AZ4DUJ7XPBANCNFSM4HTZVTSQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

tjhallum commented 3 years ago

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.

Prosimio commented 2 years ago

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.

Doesn´t work for me :(

Prosimio commented 2 years ago

For some reason, my env lost python.exe. I tried to copy it from another environment but it doesn´t let me do that (I have the administration permission but fails anyways). Finally, I solved it by doing a clone of the environment: conda create --name myclone --clone myenv

Now is working in the cloned environment.

Cshekar24 commented 2 years ago

All my environments were working totally fine but suddenly after restarting the system, the jupyter notebook from an environment was not opening or it was suddenly crashing. Tried form anaconda prompt but getting "Unable to create Process... All my DL dependencies were on this environment and I didn't want to create new environment completely installing all the required dependencies.

Solution: I opened the Anaconda Navigator and cloned old_env to new_env and it worked magically. I could able to open the jupyter notebook successfully and all dependencies were working fine. Hope it helps

Hadi-mac commented 2 years ago

I have created two virtual environments and the first one is working properly while the second one is having this issue when typing "jupyter notebook" into the conda prompt although I have installed all the required libraries as well as jupyter "conda install jupyter" can anyone help identify the problem...

(Unable to create process using 'C:\Users\My Name.conda\envs\ai-env\python.exe "C:\Users\My Name.conda\envs\ai-env\Scripts\jupyter-script.py" notebook' )

Me-er09 commented 1 year ago

I tried methods like PATH , Commands but none worked in my case and finally it worked by reinstalling anaconda into different diretory

Fatih0234 commented 1 year ago

I get the following error when trying to open jupyter notebook using Anaconda prompt: Unable to create process using 'C:\Users\valspirehooha\Anaconda3\envs\tensorflow_cpu\python.exe "C:\Users\valspirehooha\Anaconda3\envs\tensorflow_cpu\Scripts\jupyter-script.py" notebook' Can anybody help?

I solved this issue by copying the python.exe from the Anaconda3 directory and pasting it in the affected environment. Hope it helps someone.

It really worked :), Thanks a lot Can you also enlighten me why in the first place it doesn't come with the environment when created?

IniGlowreeyah commented 1 year ago

How do it??

Rellanos commented 1 year ago

I have same problem. Anaconda folder was read-only. Try change it

samueloshio commented 1 year ago

I have same problem. Anaconda folder was read-only. Try change it

Do you mean to unchecked it? Is there anything more to do?

Hamid2016 commented 2 months ago

If you are traying to run jupyter notebook try this python -m notebook that works for me

GMGONCALVESS commented 1 month ago

I solved my problem the same way that most guys did here. I changed the anaconda3 file to the C:\ dir, and also change all the PATH variables to C:\anaconda3.......

It worked fine for me, easy and fast solution. Thank you everyone for the support!!!

shakil1819 commented 3 days ago

If you are traying to run jupyter notebook try this python -m notebook that works for me

This works perfectly for me

conda activate env_name
python -m notebook