EasyEclipse for LAMP is for PHP, Python, Perl, and Ruby development with a web server and a database. This distribution contains all the plugins needed to develop in PHP, Python, Perl, Ruby and Ruby On Rail. EasyEclipse for LAMP is for PHP, Python, Perl, and Ruby development with a web server and a database. This distribution contains all the plugins needed to develop in PHP, Python, Perl, Ruby and Ruby On Rail. ![]() Hello World in Python 2 on Mac OS X Your First Program in Python 2 on Mac OS X 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. All of the software is freely available on the Web. These instructions are for MacOS X 10.13 (High Sierra), but the instructions for other versions of Mac OS X are similar. Overview The Python programming environment required by this booksite consists of: • Python, that is, the Python compiler/interpreter. • The Python standard libraries. • IDLE, the Python Integrated Deve Lopment Environment. • The Tkinter, NumPy, and Pygame libraries, which are used by the booksite programs that do graphics or audio processing. • The booksite library, that is, a set of modules that we developed specifically to support this booksite. • The Terminal application that is bundled with Mac OS X. Downloading and Installing Python, IDLE, Tkinter, NumPy, and Pygame A version of Python 2 is bundled with Mac OS X. It's fine to use that version. IDLE, Tkinter, and NumPy are part of that version, but you must download and install Pygame yourself. Perform these steps to download and install Pygame: • Open a Terminal window. To do that, click on the Spotlight Search icon on the right end of the menu bar. ![]() Free Python Download For Mac(It has the appearance of a magnifying glass.) In the resulting dialog box, type Terminal.app followed by the Enter key. • In the Terminal window issue these commands to install pip, the Python package manager. Enter your computer's administrator password when prompted: • sudo easy_install pip sudo chmod 755 /usr/local/bin/pip sudo chmod 755 /usr/local/bin/pip2 sudo chmod 755 /usr/local/bin/pip2.7 • In the Terminal window issue this command to use pip to install Pygame: • python -m pip install -U pygame --user Perform these steps to test your environment: • In the Terminal window issue the python command. You should see something like this: • Python 2.7.10 (default, Oct 6 2017, 22:29:07) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin Type 'help', 'copyright', 'credits' or 'license' for more information. >>> • If you see that output, then your Python compiler/interpreter is working, and Tkinter, numpy, and IDLE are available. • At the Python >>> prompt, type the statement import pygame followed by the Enter key. If Python generates no error messages, then you have installed Pygame properly. • At the Python >>> prompt, type exit() followed by the Enter key to exit Python. • Close the Terminal window. PHP Expert Editor is an easy-to-use IDE for Windows with UTF-8 support. This editor supports Perl, Python, Ruby, Tcl, Java Script and other languages too. Games Download For MacDownloading and Installing the Booksite Library Perform these steps to download and install the booksite library: • Use your Web browser to download this file to your /Users/ yourusername/Downloads directory. Note: The Mac Finder application uses the term folder to mean a container of documents and, perhaps, other folders. This document instead uses the equivalent Unix term directory. Mac Update Python• 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. • Open a Terminal window. • At any time the Terminal application has a working directory. Initially the working directory is /Users/ yourusername. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2019
Categories |