Installing Python and Atom on a Windows 7 or Mac OS X Computer Python 2.7.x is the development language for this course and Atom is the IDE (integrated development environment) that we use to write, run, and debug our Python scripts (at least the ones that don’t run inside ArcGIS). The instructions here are general guidelines for getting the packages onto your Windows PC or Mac OS X computer. You can also set both environments up for Linux but since I don’t have a Linux machine right now, you will have to work that out on your own.
![Atom Install Package Windows Atom Install Package Windows](http://www.marinamele.com/wp-content/uploads/2015/06/creaate-function.png)
Installing Python On a Windows PC: First, check to see if you already have Python. Open up a command window. On Windows 7, click the Start button and type cmd in the text box (for other versions of Windows, google “open command prompt windows X”).
A window with a command prompt will open. In the command prompt window, type python. If you get a message saying that Python is not recognized, then you will need to install it on your computer.
If Python does start, check the version. If it is 3.x, you will still need to download version 2.7.x. Also, make sure that ‘Anaconda’ is mentioned somewhere in the starting info.
Here's a quick tutorial on how to install a package in Atom using the GUI and the Windows Command Line. Follow the steps and install any packages!
If it is not, you should continue with the installation instructions. Type quit ( ) at the prompt and Python will exit. If you do not have version 2.7.x of Python,. Anaconda includes a Python interpreter and many other helpful tools for Python programming. Click the Python 2.7 Windows 64-bit graphical installer and follow the instructions. On a Mac (OS X): First, check to see if you already have Python. Open up Terminal.
The easiest way is to open Spotlight with ⌘ + space and type terminal in the text field. Double click on Terminal under applications.
In Terminal, type python. If you get a message saying that Python is not recognized, then you will need to install it on your computer. If Python does start, check the version. If it is 3.x, you will still need to download version 2.7.x. Also, make sure that ‘Anaconda’ is mentioned somewhere in the starting info. If it is not, you should continue with the installation instructions. Type quit( ) at the prompt and Python will exit.
If you do not have version 2.7.x of Python,. Anaconda includes a Python interpreter and many other helpful tools for Python programming. Click the Python 2.7 Mac OS X 64-bit graphical installer and follow the instructions. Installing Atom Atom is an integrated development environment (IDE—editor and run time tools) available for both Windows PCs and Macs running OS X. For Windows, click Download Windows Installer. Run it and follow the instructions.
For Mac OS X, click Download for Mac. Run the downloaded file atom-mac.zip. Installing Script Script is a tool that lets Atom run the Python scripts you create in this course. To install Script: On Windows: Start Atom. Click FileSettings Click Install.
![Windows Windows](/uploads/1/2/5/5/125504908/457768556.png)
Type Script in the text window and click Install (blue button that says Install). Atom will go out and get this package and install it for you.
On the Mac: Click AtomPreferences Click Install. Type Script in the text window and click Install (blue button that says Install). Atom will go out and get this package and install it for you. Testing your installation Click FileNew file Click FileSave As and save your file somewhere as HelloAtom.py (the. Py extension is very important!) Click the new tab for HelloAtom.py in your editor to select it for editing and type (exactly as following): print 'hello Atom!' Please note: It’s always best to type these examples in case my word processor throws in funny single or double quotes that Atom can’t deal with Now run your Python script.
If you are running Atom on Windows, type Shift-Ctrl B on the keyboard (hold down Shift and Ctrl and then type B). If you are on the Mac, type command-i (hold down the command key and then the letter i). In either case, you should see hello Atom! At the bottom of the screen.
Settings View package Edit core configuration settings, install and configure packages, and change themes from within Atom. Usage You can open the Settings View by navigating to Edit Preferences (Linux), Atom Preferences (macOS), or File Settings (Windows). In order to install new packages and themes, click on the Install section on the left-hand side. Once installed, community packages/themes and their settings are housed within their respective section. All packages/themes that have updates will be listed under the Updates section. Finally, all keybindings (including ones that community packages have added) are available in the Keybindings section.
Want to learn more? Check out the and sections in the Atom Flight Manual.
Commands and Keybindings All of the following commands are under the atom-workspace selector.