Anaconda navigator shows initializing and closes immediately - python

I have installed anaconda3 on my laptop but every time I try to launch anaconda navigator from windows start menu or anaconda prompt or even command prompt, anaconda navigator would show initializing and then immediately stops. I have attached some pictures of it for reference. I have tried running lots of commands in command prompt and anaconda prompt searching from the internet in order to fix this issue but none of them worked, I used commands like conda update conda, conda update anaconda-navigator, conda update navigator-updater, conda update --all, conda remove anaconda-navigator and then conda install anaconda-navigator, anaconda-navigator --reset and tried launching anaconda-navigator again and many more searching from the internet.
Any help is really appreciated anything if that worked for you might work for me as well so please help me. I'm stuck in my projects.
Thank you
Deepankar Pradhan

You may try one of the following:
Delete the .condarc file in the users folder and restart Navigator.
Delete the .continuum file and restart Navigator.
On conda prompt:
conda update conda
conda update anaconda-navigator
conda update navigator-updater
anaconda-navigator --reset
Restart Navigator

Related

Python interpreter is in a Conda environment, but the environment has not been activated

Installation:
I'm a newbie in Python and I'm facing issues with Anaconda. Whenever I launch Anaconda Navigator it shows Python stopped working and crashes.
Also if I type python in the command prompt I get a warning:
"Python interpreter is in a conda environment, but the environment has not been activated. Libraries may fail to load. To activate this environment please see https://conda.io/activation"
I have seen such questions before and tried the solutions, but nothing seems to work. I also tried to reinstall, but it's the same every time.
Try:
conda activate base
Or create a venv:
conda create my_env
conda activate my_env
Or install the Python system directly. Download from here.
This seems to be two separate issues:
Crashing on Anaconda Navigator startup
Try to update PyQt. For more information, see: Spyder and Anaconda Navigator do not open - "Python has stopped working" (Fixed) #10088
For the Python commands, try to activate your environment: conda activate base.

Why is Miniconda not running the latest version of Spyder?

I am in my tensorflow env on my minicoda prompt and I have just installed the latest version of Spyder via the following prompt: conda update spyder. Before I updated spyder I was on v4.1.3. I then searched to see if it was installed correctly with the following prompt: conda search -f spyder which brought up this list:
However, when I run spyder from miniconda: spyder (or even startup the application by clicking on the icon) it still launches my previous version of 4.1.3
What I then tried to do was run the prompt spyder=5.05 but it still launches version 4.1.3.
In my miniconda3\Lib\site-packages directory my spyder folder's file __init__.py has version = 4.1.3 so I understand that that is why it is launching 4.1.3. I do not know why this spyder folder was not updated. You can also see the pkgs folder there is only Spyder v4.1.3
Can someone please help me get the latest version of spyder to run without me having to uninstall and reinstall it, as I have all my preferences set on spyder and apparently there is no way of exporting and then importing them. Thanks
In my environment on my Miniconda prompt I typed in conda install spyder=5.0.5 and this resolved the issue. I now have Spyder 5.0.5! Acknowledgements to MB-F for giving the solution in the comment section.
Try to do it in this order:
conda update anaconda
and then
conda install spyder=5
this will allow you to successfully upgrade to version 5.
If it didn't help, then do this:
conda install conda-forge::spyder[version='>=5.0.0]
You can put another version

Updated Anaconda but it broke, so uninstalled and installed again but it is not working?

Yesterday I updated anaconda and spyder and today I could not open anything. So i unistalled and installed again. Now I can see the app in the app menu on start but it does not open. I have tried in the command terminal as well but it is not opening. Can anyone help?
Before reinstalling the prompt was working but now neither the prompt or the navigator are working.
Uninstalling anaconda is risky. You should follow the official guide :
https://docs.anaconda.com/anaconda/install/uninstall/
I recommend you to use anaconda clean then remove again at option B.
conda install anaconda-clean
anaconda-clean --yes
And before reinstall it, be sure you can completely clean it.

Anaconda Navigator(version 1.9.12) not upgrading in Windows 10

The Anaconda Navigator that I am using is version 1.9.12. Whenever I open the Navigator(run as Administrator), a pop-up comes that asks for upgrade with the following message:
There's a new version of Anaconda Navigator available. We strongly recommend you to upgrade.
If you click yes, Anaconda Navigator will close and then the Anaconda Updater will start.
Do you wish to update to Anaconda Navigator 1.10.0 now?
(You will be prompted to elevate privileges)
No Yes
Once I click the 'Yes' button, the pop-up goes off and nothing will happen(Navigator UI stays there). I tried alternative ways that are mentioned in StackOverflow. I tried the following commands in Anaconda Prompt:
conda update anaconda-navigator
I ran the Anaconda Prompt as administrator. Once the command is run, the process gets stuck at 'resolving the environments'. It may be noted that Python 3.8 is the version that I am running. The Python programs and all its modules are all running fine. Just that I want to upgrade the Navigator.
I found this answer from the another StackOverflow post, but for MacOS. Apparently there's a bug in the Anaconda Updater tool that is fixed in the 1.10 update, but as a catch 22, you can't use the updater to update the software to fix the bug that prevents you from updating the software (as described in the release notes).
So what I did was go to the Windows menu and open the Anaconda Powershell Prompt(Anaconda3) and at the prompt enter:
conda deactivate
then after that is done enter the following:
conda update anaconda-navigator
then just like a pip install it shows you what needs to be updated, you indicate at the prompt, yes (enter y) and it installs.
good luck!
Just encountered the same problem. Windows 10 64bit Version 10.0.19043 Build 19043, Anaconda Navigator 1.9.12
Try
conda install anaconda-navigator=2.0.1
Worked for me.
After that updated to Anaconda Navigator 2.2.0 (last version) via start GUI menu.
After trying different suggested solutions on StackOverflow, this is what eventually worked for me (I am running a Windows 10 Home 21H1 on a 64-bit machine):
Exit Anaconda Navigator
From Windows Start, launch Anaconda Powershell Prompt (miniconda)
At the command line prompt, enter:
conda install anaconda
At this point, I tried conda update anaconda-navigator, but got the error PackageNotInstalledError: Package is not installed in prefix <\path\to\package>:
At the command line prompt, enter the following:
conda install --prefix <\path\to\package> anaconda-navigator
conda update anaconda-navigator

Segmentation fault when I try to run Anaconda Navigator

I have recently Installed Anaconda for Python 3.6 but it shows the error "Segmentation fault" whenever I try to run Anaconda-Navigator.
I've tried just writting in the terminal Anaconda-Navigator and also going to my Anaconda3 folder and try to execute it inside bin.
The only solution that works so far is accessing the previously bin folder as root. My problem is that I need to activate TensorFlow before I run anything in my console, but that is imposible as a root user.
I've already try to upgrade both, Anaconda and Navigator and reinstall them but nothing ocurrs
Anyone here has any idea of what is happening?
Had the same problem with my anaconda install. It is probably related to incompatible versions of conda and anaconda navigator.
conda update --all
worked for me.
I had the same issue today, and I solved by running:
conda upgrade anaconda
The output said:
The following packages will be DOWNGRADED due to dependency conflicts:
anaconda-navigator: 1.5.1-py36_0 --> 1.5.0-py36_0
after that, I launched anaconda-navigator (no segfault this time) and a window prompted me to upgrade to 1.5.1. I clicked yes, and now running anaconda-navigator 1.5.1 without segfaults on launch. Don't know what is the reason
I tried to install opencv via conda then I got the same error. Later I followed the
conda update conda
conda update anaconda-navigator
conda update navigator-updater
Then I did
conda update --all
Voila, its working again
I had the same issue when I install OpenCV library using conda.Most probably downgrading something makes this issue happen. Just type :
conda update --all
I had the same problem.I solved it by adding /lib to mt LD_LIBRARY_PATH.
Note: On my system Anaconda installation path is /home/pushyamik/anaconda3.

Categories