Configuring pycharm + arcgis 10.6 development environment comes with python2.7.14

1. The first step in installing arcgis10.6 + python2.7.14

2. Install pycharm, I installed the pycharm Community Edition 2019.3.3

3. Open pycharm, the new project, select the virtual environment, the following configuration, select arcgis python comes with the default installation path

 

 

 

 Click to create

 

Created.

 

 

 

 Next, test, create a python script, the results show arcpy library is not imported successfully. Obviously we still do not import arcpy come.

 

 

 It is clear that our setup is problematic. You need to set some environment. To file - setting inside further configuration. Select Project Interpreter.

 

 Select the installation path python

 

 Here, the configuration is successful, import library success.

 

Guess you like

Origin www.cnblogs.com/suncf/p/12357913.html