My Anaconda Navigator and Spyder won't launch after installing basemap - anaconda

I just installed basemap using
conda install -c conda-forge basemap=1.0.8.dev0
and
conda install -c conda-forge basemap
in the Anaconda prompt but after that I was not able to launch neither Spyder nor Anaconda Navigator. I tried all trick provided here in Stackoverflow but none of them working. Any advice?
Shall I re-install the entire Anaconda without loss my libraries and packages?

(Spyder maintainer here) Mixing conda-forge and default packages is a really bad idea because they are compiled differently. That's the root cause of the problem you're experiencing here.
Shall I re-install the entire Anaconda without loss my libraries and packages?
Yes, I'm afraid you have to do that because you have corrupted your installation.
Any advice?
The solution is to create a separate conda environment to install conda-forge packages, like this
conda create -n basemap-env
source activate basemap-env
conda install -c conda-forge basemap=1.0.8.dev0 spyder
and start Spyder from that environment.

Related

Orange3 install through Anaconda Prompt gets stuck on 'solving environment'

opened anaconda prompt as administrator,
first updated conda using
conda update conda
then tried installing Orange3 using
conda config --add channels conda-forge
conda install pyqt
conda install orange3
as per https://orangedatamining.com/download/#windows.
gave me the following problem:
it stays on this for at least an hour.
What am I missing or misunderstanding here?

conda environment broken after updating conda

after using conda extensively for a while, I was asked to update it yesterday and now things look broken. I have to admit that I am not an expert of what goes on behind the scenes so bear with me :)
After installing conda I used pip to install the various packages.
Yesterday I started working on some code from a tutorial on git, which suggested to create an ad-hoc environment to work with:
conda env create -f binder/environment.yml
At this step I was suggested to update conda, since I was using an old version. I can't find in my terminal that specific message (i.e. I can't find what version of conda I was using before), but here is what I get now when I check the version of conda:
(base) francesco ~$ conda list conda
# packages in environment at /Users/francesco/anaconda3:
#
# Name Version Build Channel
_anaconda_depends 2019.03 py36_0
anaconda custom py36_1
anaconda-client 1.7.2 py36_0
anaconda-navigator 1.8.7 py36_0
anaconda-project 0.8.4 py_0
conda 4.8.3 py36_0
conda-build 3.10.5 py36_0
conda-env 2.6.0 h36134e3_0
conda-package-handling 1.6.0 py36h1de35cc_0
conda-verify 3.4.2 py_1
One of the things I noticed after the update is that in order to activate/deactivate the environment I had to use conda activate/deactivate <env> instead of source activate/deactivate <env>.
After that I worked with the code in the new environment without any problem.
Today I tried to activate the main environment I work with, but I was asked to "init" my shell first with:
conda init bash
After that I activated my "usual" environment:
conda activate testenv
and I tried to start Jupyter Lab, but I got this error:
(testenv) francesco ~$ jupyter lab
Error executing Jupyter command 'lab': [Errno 2] No such file or directory
What is happening? Why is Jupyter Lab not working anymore in my usual environment?
I checked the installation in testenv and things look ok:
(testenv) francesco ~$ conda list | grep jup
jupyter 1.0.0 py37_7
jupyter_client 5.2.4 py37_0
jupyter_console 6.0.0 py37_0
jupyter_core 4.4.0 py37_0
(testenv) francesco ~$ pip list | grep jup
jupyter 1.0.0
jupyter-client 5.2.4
jupyter-console 6.0.0
jupyter-core 4.4.0
(testenv) francesco ~$
Does anyone know what is going on? This is a huge problem for me as conda/jupyter lab are the main tools I use for work :\
The common practice is to only install Jupyter in a single Conda environment (typically your base env if an Anaconda user), and always launch Jupyter from there. To use other Python envs in Jupyter, you need to install ipykernel in those envs, e.g.,
conda install -n testenv ipykernel
And, to avoid having to register your additional envs, it is recommended to install nb_conda_kernels in the env with Jupyter, e.g.,
conda install -n base nb_conda_kernels
As a side note, installing things with Pip can make environments unstable. I strongly recommend learning and adhering to the documented best practices.
#FrancescoLS It seems that you had perhaps an older version of Conda installed(?) as the CHANGELOG indicates that source activate was deprecated in favor of conda activate in Conda v4.4.0 (as is also noted in this "How to Get Ready for the Release of conda 4.4" post from Anaconda).
This really isn't an "answer" in any actionable way, but it seems that you are not alone in Conda update breaking people's environments.
superuser: Conda update conda does extra stuff and destroy my anaconda install
Conda Issue #8842: Conda Deletes All Modules During Update
there are lots more. :/
I think it is safe to say that keeping virtual environments safely intact during an upgrade is hard to do, and that when doing a major upgrade across virtual environment maintainers (Conda) it is even harder. This is one of the reasons that I personally try to have all of my project virtual environments be maintained either in native Python 3 venv virtual environments with pip or through Poetry (as they are (or at least used to be) way faster to restore than having to go through Conda's slower solver) and then only resorting to using Conda when I need to bring in multiple external binary applications.
Were you able to make a new Conda environment for your work that effectively restores it (perhaps from your own environment.yml file for that environment)?

Anaconda not able to installed Spyder in Environment

Current version of Anaconda is not able to install the Spyder in a virtual Environment. I have tried it using Anaconda Prompt as well Anaconda Navigator
Is this some kind of bug. I updated the python 3.6 to 3.7 and the mentioned problem is prevailing since then
I have tried using Anaconda Navigator > Environment > Create > used App install to install Spyder version of 3.3.3
conda install -c conda-forge spyder
conda install -c conda-forge/label/cf201901 spyder
conda install -c conda-forge/label/beta spyder

Anaconda Navigator crashing after launch, Windows 10

Anaconda Navigator is crashing after lauching Jupyter Notebook from the Anaconda Navigator and installing pandas-datareader “conda install -c conda-forge pandas-datareader”.
What is causing this?
you might using an old version of navigator. Please update to the latest version.
$ conda update anaconda-navigator
$ conda install navigator-updater

conflict while installing mayavi into anaconda

Good day,
My colleague asked my to install Anaconda and mayavi and I am novice with this topic and I decided to do the tasks on a new ubuntu installation
Here are my tasks before my issue
I fresh installed a Ubuntu 16.04
I ran all update apt-get update/upgrade
I created an user account (anna) and add it in sudo group
I loged into anna account
I downloaded Anaconda2-4.4.0-Linux-x86_64.sh for python 2.7
I installed with the command sudo bash Anaconda2-4.4.0-Linux-x86_64.sh
I installed anaconda in /opt/anaconda2 instead to the /home/anna/anaconda2 (for all user usage) and I say YES to have the line export PATH="/opt/anaconda2/bin:$PATH" in .bashrc file of anna
I run source /home/anna/.bashrc
After the anaconda installation, I could see a successful message regarding the installation
Now my colleague asked me to install mayavi and she provided me the following link mayavi
Then I simply enter the following command
conda install -c anaconda mayavi=4.5.0
And here start my problem. I can not well understand the conflict but apparently there is a conflict and I have no idea how to solve it. Here is the command and the message
anna#pc17:~$ conda install -c anaconda mayavi=4.5.0
Fetching package metadata ...........
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in conflict:
- mayavi 4.5.0* -> pyqt 4.* -> qt >=4.8.6,<5.0
- mayavi 4.5.0* -> pyqt 4.* -> sip >=4.16.4,<4.18
- navigator-updater -> pyqt >=5.6 -> qt 5.6.*
Use "conda info <package>" to see the dependencies for each package.
I have no idea what does mean the above message and how to solve me problem.
Is there depencies that I have to additionally install?
For information the above command return me this:
anna#cryospc17:~$ python --version
Python 2.7.13 :: Anaconda 4.4.0 (64-bit)
anna#cryospc17:~$ python3 --version
Python 3.5.2
Did I correctly try t install mayavi?
Thank a lot for any help you can provide me
To complete the install of mayavi, you have to first install the following depence
conda install -c anaconda vtk=6.3.0
conda install -c anaconda pyside=1.2.1
Then install mayavi
conda install -c anaconda mayavi=4.5.0
It may possible, you have to remove pyqt
conda uninstall pyqt
We finally could install anaconda and mayavi sucessfully.
I hope it help
Cheers
This might be helpfull to others. It must be anaconda for python 2.7 currently and the follows worked.
Install anaconda for python 2.7, then try the follows:
conda uninstall pyqt
conda uninstall navigator-updater
conda install pyqt=4
conda install vtk
conda install envisage
conda install pyside
conda install apptools=4.4.0
conda install mayavi

Resources