Last active
September 28, 2023 13:24
-
-
Save wesinator/819e0708bf1defac123dd7bfbe61f58a to your computer and use it in GitHub Desktop.
Generate persistent symlinks for pip bin to pip3.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ln -s /usr/bin/pip3 /usr/bin/pip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate persistent symlink for pip bin to pip3. | |
# This is the right way to have pip command that works on python upgrade. | |
# run under admin user on macOS | |
ln -s /usr/local/bin/pip3 /usr/local/bin/pip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ensures python is aliased correctly so `python` command works | |
# https://askubuntu.com/questions/320996/how-to-make-python-program-command-execute-python-3 | |
sudo apt install python-is-python3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment