4/29/2023 0 Comments Download python for mac![]() Issue the python 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. In the Finder, double click on the /Users/ yourusername/Downloads/introcs-1.0.zip file to unzip the file, thus creating a directory named /Users/ yourusername/Downloads/introcs-1.0.Īt any time the Terminal application has a working directory. 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. 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: If Python generates no error messages, then you have installed Pygame properly.Īt the Python > prompt, type exit() followed by the Enter key to exit Python.ĭownloading and Installing the Booksite Library 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: 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. 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |