noobcycle.blogg.se

Install python on mac using terminal
Install python on mac using terminal









  1. #Install python on mac using terminal how to#
  2. #Install python on mac using terminal for mac#
  3. #Install python on mac using terminal mac os x#
  4. #Install python on mac using terminal install#
  5. #Install python on mac using terminal software#

In the Terminal window issue the python3 command.Īt the Python > prompt, type the statement import stdio followed by the Enter key. Perform these steps to test your installation of the booksite library: The computer copies the files defining the booksite modules to a directory where Python can find them, and writes status messages to your Terminal window to indicate its progress.

#Install python on mac using terminal install#

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.

install python on mac using terminal install python on mac using terminal

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 on mac using terminal 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. In the Terminal window issue the command idle3.If no error messages appear, then your installation of PyGame was successful.Īt the Python > prompt, type exit() followed by the Enter key to exit Python. 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 on mac using terminal 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.

install python on mac using terminal install python on mac using terminal

Note: The Mac Finder application uses the term folder to mean a container of documents and, perhaps, other folders.

  • The Terminal application that is bundled with Mac OS X.ĭownloading and Installing Python, IDLE, Tkinter, NumPy, and Pygame.
  • The booksite library, that is, a set of modules that we developed specifically to support this booksite.
  • The Tkinter, NumPy, and Pygame libraries, which are used by the booksite programs that do graphics or audio processing.
  • IDLE, the Python Integrated Deve Lopment Environment.
  • Python, that is, the Python compiler/interpreter.
  • The Python programming environment required by this booksite consists of: These instructions are for MacOS X 10.13 (High Sierra), but the instructions for other recent versions of Mac OS X are similar.

    #Install python on mac using terminal software#

    All of the software is freely available on the Web.

    #Install python on mac using terminal 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











    Install python on mac using terminal