Idiot-class tutorials, the novice over here, with detailed practical operation of the document (word copy an image, however, the 0202 years there is such inconvenience, next time look, make up the next picture)

First, the configuration environment (win10):
1. Configuration of the python cmd environment arcmap10.2 comes python interpreter (2.7.3) (arcpy own library)

Specific operation:

1 Right-click My Computer Properties to open

 

 

 

(Select the path to edit point, there is no path to a new one)

 

(Double-click on a blank line, arcgis installation path copied into the directory python.exe), to find the path to see the next step

2 arcgis find the installation path

 

 

python2 here is the built-in interpreter, copy the path of the red box over, paste the path

, I have here is the E: \ arcgis \ ArcGIS10.2, modify the application to confirm the save after good path.

 

3 Verify with a good environment

Open cmd (windows search bar directly enter cmd start), at the command line: python press Enter to see the return of the message,

 

>>> red box appears on the configuration of the success of the

 

Second, run the code

Open cmd, if the previous verification environment that did not turn off, then enter quit on the command line () and press Enter, you can find out of the interpreter environment, and then enter cmd in the command line

 

Cd is the path to follow behind algorithm (.py file) where, after I put the code and data to you, to save you a path on it, a little big data, have put a bit of disk space is large, because the code the data generated is also a great result, to ensure that the space is large enough,

After the Cd should see go in that path, then this path to write the following command, enter:

python composite.py

(Meaning that a python interpreter to perform follow later this file)

Enter, you can see the cursor for the trip, that is, the program began to run,

 

Guess you like

Origin www.cnblogs.com/heikejingxiao/p/12375553.html