notebook icon indicating copy to clipboard operation
notebook copied to clipboard

Error: Unable to create process

Open debsdo opened this issue 6 years ago • 27 comments

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?

debsdo avatar Jun 05 '19 14:06 debsdo

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.

octo-weilian avatar Jun 18 '19 13:06 octo-weilian

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

ajoros avatar Nov 28 '19 00:11 ajoros

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

triaction2790 avatar May 25 '20 07:05 triaction2790

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 avatar May 26 '20 07:05 debsdo

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.

debsdo avatar May 26 '20 07:05 debsdo

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.

ghost avatar May 28 '20 18:05 ghost

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.👍🏾

triaction2790 avatar May 28 '20 23:05 triaction2790

@triaction2790 It helps me, thank you very much!

mahakomar11 avatar Oct 13 '20 16:10 mahakomar11

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.

rawanrizq avatar Apr 10 '21 16:04 rawanrizq

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.

denmonz avatar Apr 16 '21 20:04 denmonz

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

johanseto avatar Apr 17 '21 00:04 johanseto

new anaconda Updates have Issue

Rameshwar0852 avatar May 24 '21 16:05 Rameshwar0852

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.

RanafaB18 avatar Jun 06 '21 20:06 RanafaB18

Any solutions? encountering the same problem here.

hiyamgh avatar Nov 02 '21 14:11 hiyamgh

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.

Rameshwar0852 avatar Nov 02 '21 14:11 Rameshwar0852

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.

tjhallum avatar Nov 10 '21 20:11 tjhallum

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 avatar Mar 21 '22 14:03 Prosimio

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.

Prosimio avatar Mar 21 '22 15:03 Prosimio

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

Cshekar24 avatar Apr 11 '22 04:04 Cshekar24

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' )

Hadi-mac avatar Jun 24 '22 06:06 Hadi-mac

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

Me-er09 avatar Jan 03 '23 18:01 Me-er09

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?

Fatih0234 avatar Jan 26 '23 15:01 Fatih0234

How do it??

IniGlowreeyah avatar Jun 28 '23 09:06 IniGlowreeyah

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

Rellanos avatar Jun 28 '23 15:06 Rellanos

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

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

samueloshio avatar Jul 28 '23 05:07 samueloshio