It gives Apple users a power similar to apt-get or yum. The Homebrew project provides a free and open source package manager for macOS that many people rely on. It means we have to remember to check the website and download the new files since Python doesn't include a command-line way to update. This strategy works, but it isn't ideal for making future updates to Python. bashrc: $ echo "alias python=/usr/local/bin/python3.7" > ~ /.bashrc If you are using the default Bash shell, you can append this same text to your. zshrc file: $ echo "alias python=/usr/local/bin/python3.7" > ~ /.zshrc Since I use zsh by default, I put the following into the. What's nice about an alias is that it's specific to our command-line shell. If we use the package installation, a python3 fill will be available in /usr/local/bin/.Īliasing is a must since the Python binary stored in /usr/bin/ can't be changed. Python's website has a macOS Python 3 installer we can download and use. There are a couple options when we think about common installation patterns for applications on macOS. Now that we know what not to do, let's look at what we could do.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |