'"Exit code: 1" in anaconda navigator after reinstalling anaconda

After reinstalling Anaconda, I get the error message "Exit code: 1" when I start apps using the Anaconda Navigator. e.g. "jupyter notebook" or "CMD.exe"

Exit code: 1

When I use the CMD (base) via Env. or start from the windows start bar, it works. Jupyter also runs when I start it directly from the start bar.

This works

I only get the error message in the Anaconda navigator. I uninstalled Visual Studio. Still does not work.



Solution 1:[1]

Spent a few hours on this :

You need to run this in command prompt --> conda install ipykernel --update-deps --force-reinstall

There are 2 Errors popped for me for you it may be something else:

  1. Wrong System-path[in my case --> C:/Windows/System32 and C:/Windows/System] PATH in Env. variables
  2. If you get chcp error in command prompt then add [ Value : chcp 1252 Name : Autorun ] for Computer\HKEY_CURRENT_USER\Software\Microsoft\Command Processor in regedit.

Solution 2:[2]

I tried the above solution without success. Ran the code in an Anaconda terminal.

Here are the steps I took:

Steps I took: (1) Uninstalled and reinstalled the individual edition (non-admin) (2) Received a message Successfully installed (3) Open Anaconda Navigator successfully (4) Clicked on Juypter Launch Button (5) Received a popup box that states Application Launch Error, Application notebook launch may have produced errors, Exit Code: 1.

Additional Information: I am running on Windows 11.

Any help and would greatly appreciate.

Solution 3:[3]

After lot of fiddling around, I found out a solution for the issue in local machine. Somehow system path variables were deleted. I added following entries for system path variables and reinstalled anaconda and everything works fine! C:\Windows\System32;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;

Refer : 'chcp' is not recognized as an internal or external command, operable program or batch file. on a Windows PC

Solution 4:[4]

I was getting the same error.

I added below under Environment Variables ,

C:/Windows/System32 C:/Python310 (Python installed here in my case)

Also I checked the Registry and I don't find any Autorun which is recommended to delete.

It didn't worked for me after adding the above. Then I restarted the machine it worked without any issues.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Vaibhav Kadam
Solution 2 Kelly_McC
Solution 3 RP.
Solution 4 Divyanshu mehta