I'm wrestling with some legacy Python code. Thanks to the help of this great answer I was able to write a conda
call which executes correctly, and which hopefully contains all the packages needed to run the code:
conda install IPython scipy numpy PIL scikit-image matplotlib tensorflow keras
However, now conda
is telling me that
The following packages will be DOWNGRADED:
certifi 2018.11.29-py36_0 --> 2018.11.29-py27_0
pip 19.0.3-py36_0 --> 19.0.3-py27_0
python 3.6.8-haf84260_0 --> 2.7.15-h8f8e585_6
setuptools 40.8.0-py36_0 --> 40.8.0-py27_0
wheel 0.33.1-py36_0 --> 0.33.1-py27_0
What the what?! Python 2.7.15? No way. Also, the project README contains "instructions" to run the code with Python 3.6, so in theory the code should be compatible with Python 3.6. Is there a way to understand exactly which package and/or combination of package is causing the downgrade?
Before you say that, I know I could just install one package at a time, and see which one is the culprit. But the conda
docs specifically warn against installing the packages needed in an environment, one at a time:
Install all the programs that you want in this environment at the same time. Installing 1 program at a time can lead to dependency conflicts.
PS the output of the conda install
command is actually much longer than the one I included here. I only copied the DOWNGRADE
part because it's the only one which is bothering me, but of course if you want I can include the full multi-page output.