Wrong Pip Version For Anaconda's Environments. What Should I Do To Correct The Pip Version When Activate A Env Using `conda Activate`?
I have 4 envs in my anaconda as listed below. >>> conda info --envs base /home/gph/anaconda3 py36_torch0.4 * /home/gph/anaconda3/envs/py36_tor
Solution 1:
Use pip as a module called by the Python interpreter of your env.
python -m pip install some_package
where python
is the one active on your env, for example /home/gph/anaconda3/envs/python3.6/bin/python
.
Solution 2:
You've installed pip
outside of the conda environments, directly into your home directory. This takes precedence over everything that's installed in conda.
If you want to benefit from isolation of conda environments, you cannot install packages on the user level. This will get rid of all of them (but maybe also some more):
rm -rf /home/gph/.local
You might want to have a look at what else is installed in /home/gph/.local
before actually removing it.
Post a Comment for "Wrong Pip Version For Anaconda's Environments. What Should I Do To Correct The Pip Version When Activate A Env Using `conda Activate`?"