Introduction to Python and Programming
Installing Python
Let’s download Python on macOS:
Visit the official website
Open your web browser and go to the official Python downloads page: https://www.python.org/downloads/macos/ Download the installer:
The website automatically detects your operating system (macOS). You'll see a big button to download the latest version of Python. Click that button.Double-click the installer:
Once the download finishes, locate the downloaded file. It will usually be in your Downloads folder and named something like "python-3.x.x-macosx.pkg" (where "x.x.x" is the version number).Double-click the downloaded file. This will start the Python installation process.
Follow the on-screen instructions:
- The installation process is straightforward. You'll be asked to confirm a few things, like where to install Python.
- Tip: In most cases, the default settings are fine for beginners. Just keep clicking "Continue" or "Install" unless you have a specific reason to change something.
Verify the installation (optional):
- Once the installation is complete, you can verify it by opening a program called "Terminal" on your Mac.
- You can find Terminal by searching for it in Spotlight (the magnifying glass icon in the top right corner of your screen).
- In the Terminal window, type python –version (or python3 –version if something such as “zsh: command not found: python” comes up) and press Enter.
- If Python is installed correctly, you should see the Python version number displayed.
Last login: Sun Jun 9 15:25:00 on ttys000
username@Name-MacBook-Pro ~ % python
Python 3.11.7 (main, Dec 4 2021, 18:10:11) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
HERE ARE SOME ADDITIONAL RESOURCES ↓ ↓