0

Related question how to not install package with pip to anaconda I have commented out every entry contains conda in my .bashrc file, and my python is not directed to anaconda.

However, if I pip install cython, it shows

Requirement already satisfied: cython in ./anaconda3/lib/python3.8/site-packages (0.29.26)

I could use --target= to specify the directory for pip, as suggested in Install a Python package into a different directory using pip?

Is there any more robust solution to redirect pip?

AlphaF20
  • 571
  • 5
  • 11
  • generally, if you have anaconda installed, but would like to use the system's python, use `conda deactivate` until you cannot see the environment prefix `(base)` anymore, then use `pip install` or `python -m pip install`. If still anaconda's python is called, chance is that the PATH variable is wrongly configures. Look into your .bashrc (or equivalent) and remove the path to anaconda from the PATH variable. – cel Dec 22 '21 at 09:29

0 Answers0