In a Conda environment (base
here), I'm surprised by the order of directories in the Python path:
python -c "import sys; print(sys.path)"
['',
'/export/projects/III-data/wcmp_bioinformatics/db291g/miniconda3/lib/python37.zip',
'/export/projects/III-data/wcmp_bioinformatics/db291g/miniconda3/lib/python3.7',
'/export/projects/III-data/wcmp_bioinformatics/db291g/miniconda3/lib/python3.7/lib-dynload',
'/export/home/db291g/.local/lib/python3.7/site-packages',
'/export/projects/III-data/wcmp_bioinformatics/db291g/miniconda3/lib/python3.7/site-packages']
As you can see, my local non-Conda path:
/export/home/db291g/.local/lib/python3.7/site-packages
comes before the Conda counterpart:
/export/projects/III-data/wcmp_bioinformatics/db291g/miniconda3/lib/python3.7/site-packages
This means that Python packages installed in miniconda3/lib/python3.7/site-packages
will be ignored if they are also found in .local/lib/python3.7/site-packages
. In fact, in .local/lib/python3.7/site-packages
I have numpy
v1.20, but in the Conda environment I need v1.19, which is correctly installed, but superseded by v1.20. This seems to defeat the point of using Conda.
Is there something wrong with my configuration or am I missing something here?
Some info:
which python
/export/projects/III-data/wcmp_bioinformatics/db291g/miniconda3/bin/python
python -V
Python 3.7.12
which conda
/export/projects/III-data/wcmp_bioinformatics/db291g/miniconda3/bin/conda
conda --version
conda 4.11.0