HomebrewĪnother interesting option for Linux is using Homebrew. Trust me when I say it will save you a lot of headaches later on. This also installs a package called python-is-python3, which makes the command python point to python3. If you’re on Ubuntu, Linux Mint, or Debian, you can install using apt: $ apt install python3 python-is-python3 You’ll need to find out which package manager is used for your specific Linux distribution and how to use it. If your output looks similar to this, you’re in luck: $ python3 -versionĭepending on the distribution of Linux you are running, you can install Python with the default package manager: Yum, APT, etcetera. If you get a “command not found,” you need to install Python 3. You don’t want Python 2, but some OS’es still ship with it, unfortunately. It’s probably version 2.7: $ python -version If you enter python -version on the command line, you’ll see the version number. Many will include both Python 2 and Python 3. There are several ways to install Python on Linux, that is if you need to install it at all! Check what’s installed first Just like with Windows, you should make sure that Python is added to your system’s PATH. The downside to this approach is that you won’t get automatic updates. It’s easy and works like the installation of any other MacOS software program. If you chose to install Homebrew, installing Python on MacOS is as easy as: $ brew install python Official installerĪlternatively, you can download an installer from the Python download website. If that’s completely new to you, I recommend the next option for now: using the official installer. However, you do need to be comfortable with using a command-line shell to use Homebrew. It's much appreciated and allows me to keep working on this site! I use ads to keep writing these free articles, I hope you understand! Support me by disabling your adblocker on my website or, alternatively, buy me some coffee. I write these in my free time, and it requires a lot of time and effort.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |