I had on OSX High Sierra versions 2.7 and 3.6 and correspondingly pip
and pip3
installed. The terminal commands python
and pip
were linked to Python2 while python3
and pip3
to python3`
I upgraded my Python3 version with homebrew
. The installation was successful but now I have to link the command for python3. homebrew
suggests:
Linking /usr/local/Cellar/python/3.7.6_1...
Error: Could not symlink Frameworks/Python.framework/Headers
Target /usr/local/Frameworks/Python.framework/Headers is a symlink belonging to python@2. You can unlink it:
brew unlink python@2
To force the link and overwrite all conflicting files:
brew link --overwrite python
To list all files that would be deleted:
brew link --overwrite --dry-run python
However this would link python3 to python
terminal command while I want a separate python3
and pip3
commands.
How to do that?