1

I followed this guide to change my default install directory:

~/.pip/pip.conf:

[global]
target=~/.python-global

So that pip does not interfere with pacman. However, I need to be able to separate python2 and python3. So is there a way to get pip2 to point to ~/.python-global/python2 and pip3 to point to ~/.python-global/python3?

Drew
  • 1,171
  • 4
  • 21
  • 36
  • Personally, I would recommend you use virtualenv or conda to manage your python2 or python3 environments. This seems like an XY problem. When you activate environments using those tools you will have pip point to a new path. If you want further details I can write an answer. – OneRaynyDay Jun 13 '18 at 20:22
  • exactly as mentioned above, that is what venv is for. can also use pipenv. – Evgeny Jun 13 '18 at 21:20

0 Answers0