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.

...

Code Block
languagetext
titleFirst Anaconda Session
(D:\Users\cpricejwpowell\Miniconda2) C:\Users\cprice>pythonjwpowell>python
Python 2.7.13 |Continuum Analytics, Inc.| (default, May 11 2017, 14:07:41) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>>

...

    • Determine that the specified package versions are compatible with each other.
    • Find any packages on which these depend and determine most recent versions that are compatible with what you've asked for, if not completely specified.
    • Show you what it plans to do and prompts you to continue.
    • Download (only) the packages you need to "overlay" onto the base environment to get the environment you have specified.
    • Set up a environment subdirectory, (D:\Users\cpricejwpowell\Miniconda2\envs\arc1041 in our example) installing the downloaded packages into it. This adds up to about 1.5 GB in our ArcGIS 10.4.1 example.

...

Code Block
languagetext
titleAnaconda command prompt
C:\Users\cprice>jwpowell> conda info --envs
# conda environments:
#
arc1041                  D:\Users\cpricejwpowell\Miniconda2\envs\arc1041
root                  *  D:\Users\cpricejwpowell\Miniconda2
D:\Users\cprice>activatejwpowell>activate arc1041
Activating environment "arc1041"...
[arc1022] D:\Users\cprice>jwpowell> conda list
# packages in environment at D:\Users\cpricejwpowell\Miniconda2\envs\arc1041:
#
dateutil                  2.4.1                    py27_0
matplotlib                1.3.0                np17py27_0
numpy                     1.7.1                    py27_3
...

...

Code Block
languagepy
titleEdit block in usercustomize.txt
###########################################
# Edit here match your setup
# These paths must match your Anaconda setup exactly.

# Anaconda home folders
conda_arcmap_home = r"D:\Users\cpricejwpowell\Miniconda2"
conda_arcmap64_home =  r"D:\Users\cpricejwpowell\Miniconda3x64"
conda_arcpro_home = r"D:\Users\cpricejwpowell\Miniconda3x64"

# anaconda environments set up to match Desktop and Pro
conda_arcmap_env = "arc1041"
conda_arcmap64_env = "arc1041x64"
conda_arcpro_env = "arcpro13"

# Pro path must be included here - registry read not working
pro_path = r"C:\ArcGIS\Pro" + "\\"
pro_exe = os.path.join(pro_path, "bin\\ArcGISPro.exe")

# change to false after testing done
debug = True

# do not edit below this line
###########################################

...