jupyter-xeus / xeus-python

Jupyter kernel for the Python programming language
BSD 3-Clause "New" or "Revised" License
441 stars 73 forks source link

Conda install fails with: The environment is inconsistent, please check the package plan carefully #308

Open lresende opened 4 years ago

lresende commented 4 years ago

This is pretty much a new conda install and this start happening after a few reinstalls of the kernel

See https://github.com/elyra-ai/elyra/pull/767

conda install -y xeus-python -c conda-forge
Installing Xeus kernel
Collecting package metadata (current_repodata.json): done
Solving environment: | 
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:

  - conda-forge/noarch::requests==2.24.0=pyh9f0ad1d_0
  - conda-forge/osx-64::spyder==4.1.3=py37hc8dfbb8_0
  - conda-forge/noarch::anaconda-client==1.7.2=py_0
  - conda-forge/noarch::anaconda-project==0.8.3=py_0
  - conda-forge/noarch::sphinx==3.1.2=py_0
  - defaults/osx-64::_anaconda_depends==2020.02=py37_0
  - conda-forge/noarch::jupyterlab_server==1.2.0=py_0
  - conda-forge/noarch::numpydoc==1.1.0=pyh9f0ad1d_0
  - defaults/osx-64::anaconda==custom=py37_1
SylvainCorlay commented 4 years ago

This looks like a conda bug.

The conda solver is not super stable in my experience. In general, I recommend not using the full anaconda distribution or using the default channel, which tends to help with this. Also using mamba instead of conda shows more stability.

lresende commented 4 years ago

I was just trying to install using the recommended command from the project readme.md

conda install xeus-python notebook -c conda-forge

What is the recommended way to perform repetable installs on an environment that is not exclusive to xeus?

SylvainCorlay commented 4 years ago

conda install xeus-python notebook -c conda-forge

What is the recommended way to perform repetable installs on an environment that is not exclusive to xeus?

That seems about right. I don't know the specific bug that you are seeing but my experience with using the full anaconda distrib and then packages from conda-forge (or mixing channels in general) is not great, and not specifically with xeus. That is why we recommend using miniconda or miniforge.