Segmentation fault when I try to run Anaconda Navigator - python

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.

Related

conda install spyder=5.3.3 stuck on solving env

I couldn't find much help on the internet, which is why I'm asking this here.
Spyder has an issue where input() will cause an issue to the app. I've heard that spyder 5.3.3 has this issue fixed.
I have done:
conda update conda
conda update anaconda
However, when I try conda install spyder=5.3.3, it says failed with initial frozen solve. Retrying with flexible solve.
It then never solves the environment. Any help?
I tried all the solution posted but they does not work for my problem. I finally solved it by first uninstalling the existing spyder version and installing a new one. To do this, use this:
conda uninstall spyder
conda install spyder = 5.3.3
I don't have a great solution, ran into the same issue myself, I was able to install version 5.2.2 where 5.1.5 is the base version. This version does also fix the input() problem you were having.
Alternatively you might try either of these two options to install spyder into it's own environment which should negate the problems but will require you to be in that environment to run spyder.
conda create -n spyder-env spyder
or
conda create -n spyder-env spyder numpy scipy pandas matplotlib sympy cython
Close spyder. Run command: pip install --upgrade spyder
worked for me.
Me as well. At least you could get it updated to 5.2.2 using the recommended update command from anaconda's page for spyder:
conda install -c anaconda spyder
Or use Vaxion's solution by creating an environment.
I had the same problem, I tried on many ways. But this last worked for me:
conda install -c anaconda spyder
Maybe you can try it too.
I took it from anaconda / packages / spyder 5.3.3
Probably your Environment is broken somehow. I suggest you to create a new environment specifying conda-forge as a channel already at creation time:
conda create -n spyder-env -c conda-forge python=3.10 spyder=5.3.3
The newest versions of Spyder are usually available on this channel. Then you can install your other packages and libraries there as well.
Like others, the upgrade was advancing very slowly. It was not urgent, so I just left it, and it took about a week (!) and ended by barfing out 7000+ lines of package conflicts.
But then I followed the advice from Qiyuan Chen and it worked in just a few minutes:
conda uninstall spyder
conda install spyder=5.3.3
Qiyuan Chen's answer also worked for me. After I uninstalled and reinstalled it, I went back to Anaconda Navigator and the Spyder icon was there with an install button underneath it. I hit 'INSTALL' and it worked.
As per others and Peters answer above
But then I followed the advice from Qiyuan Chen and it worked in just a few minutes:
Needed to turn the Anaconda Navigator off and on againbut I've now got Spyder 5.3.3 up and going with no distracting messages

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

After updating Anaconda-Navigator environments dont work

I updated Anaconda-Navigator to 1.9.12 on ubuntu and now my environments dont work.
I can still start a jupyter notebook from the environment but all my installed packages are not available even though they are displayed in the anaconda-navigator gui under installed packages for this env.
but when I import a package in a notebook : ModuleNotFoundError: No module named ....
The standard packages like numpy are available though...
Please help me... why did I update!!!!????
maybe a path problem? Please help me in simple terms
Thanks
I think this is a bug. My experiance is that when you upgrade to Navigator to 1.9.12.
the enviroment variables in GUI(Navigator UI), are taken from base enviroment not from second enviroment and if you work from console it work, so it looks like it not executes conda activate new_environment in gui. When you work from terminal everythings works fine.
To be honest it has the same behaviour if fresh install last anaconda too. This was the reason i have downgraded conda isntallation, and than i found out that last version of navigator was making the issues . Or you can downgrade:
conda install anaconda-navigator=1.9.7.

can't update spyder to 4.0.0b2

I'm trying to update Spyder to version 4.0.0b2 but I'm getting an error. I don't have a lot of experience with cmd or anaconda prompt, so I don't understand the problem. Any ideas?
I'm not on MS Windows but I see several things in your screenshot
You are on base environment
You already have spyder 3.3.3 and that means that you have to use conda update spyder or uninstall it and then install it with your command conda install -c spyder-ide spyder=4.0.0b2
The same with all remaining packages mentioned there (preferably one by one since some may disappear like the kernel one when you uninstall spyder 3.3.3)
If you see that Anaconda cannot find the package in your current channels, try via proposed channels on Anaconda Cloud like conda search --override-channels --channel URL/PACKAGE
Hope it helps (:

anaconda conda: error: argument command: invalid choice when trying to update packages

I am using ubuntu 18 with anaconda for python 3.6 and trying to update packages, when I try to do so using
conda update --all
I am getting this error
conda: error: argument command: invalid choice:
'/home/user/anaconda3/bin/conda'
I tried so solve it like explained in this github issue
using
$ conda update anaconda-navigator
$ conda update navigator-updater
But getting the same error.
I tried adding
-c conda-forge to all the commands
And tried using
conda update anaconda
conda upgrade anaconda
and getting the same error all the time.
Here is my github issue on this
Thanks!
update:
even when trying to use this to install anaconda-clean and removing anaconda, I am getting the same error when trying to install conda-clean that should help me remove anaconda from my machine
UPDATED ANSWER:
For Linux users I actually found that deleting all the lines added by conda in the .bashrc other than export PATH="/home/<user>/anaconda3/bin:$PATH"
to be the best solution for this.
PREVIOUS ANSWER:
Not sure it's a fix for everyone, but I got around this by running /home/<user>/anaconda3/bin/conda install anaconda-clean (or wherever your conda file is stored), and from the packages this installed, the problem magically disappeared.
If that doesn't work, try doing a 'full' uninstall of anaconda (https://docs.anaconda.com/anaconda/install/uninstall/), reinstall it, then try doing what I suggested above.

Categories