On Windows, if you installed the launcher, the command is py. On Linux and macOS, the command to run the Python 3 interpreter is python3. If you are using the Homebrew package manager, it can also be installed by opening a terminal window ( Applications → Utilities), and running this command: brew install python3 Running Python For instance, on Debian or Ubuntu, you can install it with the following command: sudo apt-get update & sudo apt-get install python3įor macOS, the Python 3 installer can be downloaded from, as linked above. On Linux, you can install Python 3 with your package manager. When installing, make sure the "Install launcher for all users" and "Add Python to PATH" options are both checked, as shown in the image below. Unless you have a specific reason to write or support Python 2, we recommend working in Python 3.įor Microsoft Windows, Python 3 can be downloaded from the Python official website. While Python 2.7 is used in legacy code, Python 3 is the present and future of the Python language. Most systems come pre-installed with Python 2.7. In this guide, we'll be using Python version 3.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |