Stream: python-questions
Topic: pip subprocess error
Matt Long (Mar 13 2020 at 19:52):
I just got this error updating my conda environment.
Pip subprocess error:
Running command git clone -q https://github.com/NCAR/pop-tools.git /glade/scratch/mclong/tmp/pip-req-build-m_8ip_fb
Running command git clone -q https://github.com/matt-long/xpersist.git /glade/scratch/mclong/tmp/pip-req-build-09r3i96y
ERROR: Cannot uninstall 'llvmlite'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
What should I do?
Anderson Banihirwe (Mar 13 2020 at 20:00):
Do you have numba
installed in that environment?
Anderson Banihirwe (Mar 13 2020 at 20:00):
and llvmlite
?
Anderson Banihirwe (Mar 13 2020 at 20:00):
Were they installed via conda or pip?
Anderson Banihirwe (Mar 13 2020 at 20:05):
one more question :slight_smile:
Anderson Banihirwe (Mar 13 2020 at 20:06):
How are you updating the conda environment???
conda update --all
or
conda env update -f ENVIRONMENT_FILE.yaml
Matt Long (Mar 13 2020 at 20:21):
numba: yes
llvmlite: not explicitly
I used
conda env update -f environment.yml
I just deleted the environment and will rebuild. Should I add anything else?
Anderson Banihirwe (Mar 13 2020 at 20:25):
Okay.. llmvite
comes with numba
. I don't really know what is happening, but the only time I ran into this issue was when I tried installing numba from source (GitHub)
Matt Long (Mar 13 2020 at 20:26):
blowing the environment away and recreating seems to have worked.
Matt Long (Mar 13 2020 at 20:26):
thanks for your help!
Anderson Banihirwe (Mar 13 2020 at 20:26):
I just deleted the environment and will rebuild. Should I add anything else?
I suspect that at some point in the past, the dependency graph in your environment got corrupted
Last updated: Jan 30 2022 at 12:01 UTC