asmdf.blogg.se

How to start using python on mac
How to start using python on mac




how to start using python on mac

If you see that output, then your Python compiler/interpreter is working, and Tkinter, numpy, and IDLE are available.Īt the Python > prompt, type the statement import pygame followed by the Enter key. Type "help", "copyright", "credits" or "license" for more information. In the Terminal window issue the python command. Perform these steps to test your environment: In the Terminal window issue this command to use pip to install Pygame:

how to start using python on mac

Enter your computer's administrator password when prompted: In the Terminal window issue these commands to install pip, the Python package manager. (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. Perform these steps to download and install Pygame: IDLE, Tkinter, and NumPy are part of that version, but you must download and install Pygame yourself.

how to start using python on mac

  • The Terminal application that is bundled with Mac OS X.ĭownloading and Installing Python, IDLE, Tkinter, NumPy, and PygameĪ version of Python 2 is bundled with Mac OS X.
  • 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 versions of Mac OS X are similar. All of the software is freely available on the Web.

    how to start using python on mac

    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 2 on Mac OS X






    How to start using python on mac