Reputation:
I install py3.6 in dir A but later I install py3.7 in dir B. But I prefer to use py3.7 so I replace the whole dir A with dir B(A is filled with py3.7 and B does not exist anymore).
Now, my pip is using path:B but it does not exist anymore so I need to change it.
HELP!
Edit:
I use
python -m pip uninstall pip
and install it again with easy_install BUT now it said something cannot import main
Upvotes: 1
Views: 8376
Reputation: 860
Try setting the environment variable:
PIP_TARGET=/path/to/pip/dir
https://pip.pypa.io/en/stable/user_guide/#environment-variables
Upvotes: 0
Reputation: 129
Answer For Windows:
Then replace the old path with the new one at the new one:
Upvotes: 2