The problem:
I have installed Anaconda:
conda -V
conda 4.4.7
Also I installed a lot of packages for it using pyt
One has to be careful when using pip inside a conda environment, whether for installing and unistalling packages. What works for me is based on https://stackoverflow.com/a/43729857/1047213.
pip
that is specific to the conda environment by running conda install pip
inside the conda environment.pip
while installing or uninstalling a package. Usually, you will find it inside the bin
folder of the virtual environment (e.g., /anaconda/envs/venv_name/bin/
). Thus, the following works for me: /anaconda/envs/venv_name/bin/pip install_or_uninstall package_name
.