I've recently read about the dangers of using pip to install packages in an environment. Unfortunately, before I learned this I had already installed packages with pip in my base environment. From what I've read, the --revision command option doesn't remove the pip packages, just those installed via conda. Is this anyway to correct this mess short of a complete reinstall? No doubt complicating matters, I don't have a list of what I installed with pip.
Asked
Active
Viewed 36 times
0
-
When you do `conda list` all pip installed packages should show with channel and build `pypi` – FlyingTeller Nov 01 '21 at 08:56
-
https://stackoverflow.com/a/11250821/7976758 Found in https://stackoverflow.com/search?q=%5Bpip%5D+uninstall+all+packages – phd Nov 01 '21 at 08:59
-
@phd that solution does not work in this case, as `pip freeze` will also list conda installed packages – FlyingTeller Nov 01 '21 at 10:08
-
@FlyingTeller - this lists a few packages, which may cover all those for which I called pip install. However, these installs typically invoked a possibly large number of dependencies and these don't seem to get removed. Do these remaining dependencies create the same sort of env corruption that the pip installed packages do? If I go ahead with a clean reinstall, can I preserve any parts of my Navigator or Spyder state? – Llaves Nov 01 '21 at 22:32
-
Please ping me if you disagree with the duplicate, but the answer there gives a command for removing all PyPI packages from a Conda environment. – merv Nov 04 '21 at 21:07
-
thanks for the link to the complete answer. – Llaves Nov 05 '21 at 22:24