

- #INSTALL PYTHON 3 MAC COMMANDLINE HOW TO#
- #INSTALL PYTHON 3 MAC COMMANDLINE FOR MAC#
- #INSTALL PYTHON 3 MAC COMMANDLINE MAC OS X#
- #INSTALL PYTHON 3 MAC COMMANDLINE INSTALL#
- #INSTALL PYTHON 3 MAC COMMANDLINE SOFTWARE#
Issue the python3 setup.py install -user command. Make sure that a file named setup.py is in your working directory. Issue the ls command to display the names of all files in your working directory. command changes your working directory to the "parent" of the current working directory.) In the Terminal window issue the cd Downloads command to change your working directory to /Users/ yourusername/Downloads, and then issue the cd introcs-1.0 command to change your working directory to /Users/ yourusername/Downloads/introcs-1.0. Initially the working directory is /Users/ yourusername. (It's OK to delete the /Users/ yourusername/Downloads/introcs-1.0.zip file after you have unzipped it.)Īt any time the Terminal application has a working directory. In the Finder, double click on /Users/ yourusername/Downloads/introcs-1.0.zip to unzip the file, thus creating a directory named /Users/ yourusername/Downloads/introcs-1.0. Use your Web browser to download this introcs-1.0.zip file to your /Users/ yourusername/Downloads directory. Perform these steps to download and install the booksite library:
#INSTALL PYTHON 3 MAC COMMANDLINE MAC OS X#
The former command runs the Python 2 compiler/interpreter that is bundled with Mac OS X the latter command runs the Python 3 compiler/interpreter that you installed by following the instructons on this page.ĭownloading and Installing the Booksite Library IMPORTANT: When running the Python programs associated with this booksite, do not issue the python command. If an IDLE window appears, then you have installed IDLE properly.

If no error messages appear, then your installation of NumPy was successful.Īt the Python > prompt, type import pygame followed by the Enter key. If you see that output, then your installation of Python, IDLE, and Tkinter was successful.Īt the Python > prompt, type import numpy followed by the Enter key. Type "help", "copyright", "credits" or "license" for more information. In the Terminal window issue the python3 command. Perform these steps to test your installation: To "issue a command" you should type the command followed by the Enter key. In the Terminal window issue these commands to install NumPy and PyGame: (It has the appearance of a magnifying glass.) In the resulting dialog box, type Terminal.app followed by the Enter key. To do that, click on the Spotlight Search icon on the right end of the menu bar. (It's OK to delete the python-3.6.5-macosx10.6.pkg file after the installation is complete.) Using Mac Finder Manager, navigate to your Downloads directory, and double-click on the python-3.6.5-macosx10.6.pkg file to install Python, Tkinter, and IDLE. Your browser will download the file python-3.6.5-macosx10.6.pkg to your Downloads directory. In the resulting page click on the Download Python 3.6.5 button.
#INSTALL PYTHON 3 MAC COMMANDLINE FOR MAC#
Perform these steps to download and install Python, IDLE, Tkinter, NumPy, and PyGame:īrowse to the Python for Mac download page.

We recommend that you download and install Python 3, and use Python 3 exclusively when running programs associated with this booksite. This document instead uses the equivalent Unix term directory. Note: The Mac Finder application uses the term folder to mean a container of documents and, perhaps, other folders.

#INSTALL PYTHON 3 MAC COMMANDLINE SOFTWARE#
All of the software is freely available on the Web.
#INSTALL PYTHON 3 MAC COMMANDLINE HOW TO#
This page tells you how to setup a Python programming environment for your Mac OS X computer and provides a step-by-step guide for creating and running a simple "Hello, world" Python program. Your First Program in Python 3 on Mac OS X
