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 packages installed in miniconda3/lib/python3.7/site-packages will be ignored if they are found in .local/lib/python3.7/site-packages. In fact, in .local/lib/python3.7/site-packages I have numpy 1.20 but in the conda environment I need 1.19, which is correctly installed but superseded by 1.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