Confluence Retirement

In an effort to consolidate USGS hosted Wikis, myUSGS’ Confluence service is scheduled for retirement on January 27th, 2023. The official USGS Wiki and collaboration space is now SharePoint. Please migrate existing spaces and content to the SharePoint platform and remove it from Confluence at your earliest convenience. If you need any additional information or have any concerns about this change, please contact myusgs@usgs.gov. Thank you for your prompt attention to this matter.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

[arc1022] D:\Users\cprice>python
Python 2.7.5 |Continuum Analytics, Inc.| (default, Jul 1 2013, 12:41:55) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

...

3) Configure the conda environment to access ArcGIS

[arc1022] D:\Users\cprice>copy c:\Python27\ArcGIS10.2\lib\site-packages\desktop10.2.pth

...

 D:\Users\cprice\Anaconda\envs\arc1022\lib\site-packages

...


[arc1022] D:\Users\cprice>python
Python 2.7.5 |Continuum Analytics, Inc.| (default, Jul 1 2013, 12:41:55) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import arcpy
>>> import pandas
>>> 

 

...

4) Configure ArcGIS to find conda packages

  1. Navigate to the place ESRI python was been installed on your platform. On mine, it is "C:\Python27"
  2. If you have admin access:

    1. Navigate to "C:\Python27\ArcGIS10.2\Lib\site-packages"

  3. If you don't
    1. Run this command: C:\Python27\ArcGIS10.2\python.exe -m site --user-site
    2. Navigate to the reported path (you may have to create the folder)
  4. Create and edit an ASCII file called "conda.pth" This file will have a single line, containing the path to the environment site-packages folder:
    For example: D:\users\cprice\Anaconda\envs\arc1022\lib\site-packages
  5. You should now be able to import pandas from the ArcMap command prompt and it will also be available to script tools.

...

Testing and Troubleshooting

...