Locating Python, adding to Path and accessing Arcpy

The reason I had to move into a VM – group policies on work network kept destroying my ArcPy

Python, GIS and stuff...

To access the Python interpreter and run Python scripts you need to know the location of python.exe for your installation. To make running scripts easier you may wish to add this location to your system Path, either temporarily or permanently. It is also possible to allow Python installations that were not installed by ArcGIS to access Arcpy functionality. This post describes how to do each of these as well as some general considerations.

Opening the command prompt

You can open a command prompt through the start menu, or by running cmd.exe from the run dialogue. To change directories use ‘cd’ followed by the desired path to change to that directory, for example:

C:>cd test

To open a command prompt in a folder (for example, a folder where you keep your scripts) right click (Windows XP) or hold down shift and right click (Windows 7) on the folder and select

View original post 964 more words

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.