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 Thank you for your prompt attention to this matter.

Versions Compared


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


Code Block
titlePython script for ArcGIS Python window
# - report ArcGIS Python modulemodue versions
# Example output (ArcGIS Pro 2.0 Python window):
#   C:\ArcGIS\Pro\bin\ArcGISPro.exe
#   Python 3.5.2
#   |Continuum Analytics, Inc.| (default, Jul  5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)]
# matplotlib 1.5.3
#   numpy 1.11.2
#   scipy 0.18.1
import sys
import os
ff = "{} {}"
    print(ff.format("Python", sys.version.split("|")[0]))
    import matplotlib
    print(ff.format("matplotlib", matplotlib.__version__))
    import numpy
    print(ff.format("numpy", numpy.__version__))
    import scipy
    print(ff.format("scipy", scipy.__version__))