English

FAQ: What version of Python is used in ArcGIS?

Question

What version of Python is used in ArcGIS?

Answer

The Python programming language has been used in each version since ArcGIS 9.0. It is incorporated into the setups of ArcGIS Desktop, ArcGIS Pro, and ArcGIS Enterprise. ArcGIS installs the versions of Python listed below.

The version of NumPy and Matplotlib is included with the Python environment in the most recent releases.

Note:
It is not recommended to install an independent version of Python for use in ArcGIS Desktop. Using a different version of Python can lead to compatibility issues and root folder problems. It is not supported to replace the version of Python that ships with ArcGIS Server.

ArcGIS Pro

The version of Python and its stack versions can be determined by opening the Python window in the application by clicking View > Python, and typing the following commands:

import sys
import matplotlib
import numpy
import scipy
print(sys.version)
print(matplotlib.__version__)
print(numpy.__version__)
print(scipy.__version__)

The commands display the default Python version used with the application. In the image below (ArcGIS Pro 2.5), the version of Python is 3.6.9, followed by the versions of the Matplotlib, NumPy, and SciPy packages. Many other packages are also included with the Python environment. Use the Python tab in the ArcGIS Pro settings to check the version of those packages .

The Version result from Python script

Note:
In ArcGIS Pro versions 1.0 through 1.2, if Python is used outside of ArcGIS Pro, it is required to install Python for ArcGIS Pro. This is not required for versions 1.3 and later.

ArcGIS Desktop

ArcGIS Desktop VersionsPython and NumPy Versions
10.8.1Python 2.7.18 and NumPy 1.9.3
10.8Python 2.7.16 and NumPy 1.9.3
10.7.1Python 2.7.16 and NumPy 1.9.3
10.7Python 2.7.15 and NumPy 1.9.3
10.6.1Python 2.7.14 and NumPy 1.9.3
10.6Python 2.7.14 and NumPy 1.9.3
10.5.1Python 2.7.13 and NumPy 1.9.3
10.5Python 2.7.12 and NumPy 1.9.3
10.4.xPython 2.7.10 and NumPy 1.9.2
10.3.xPython 2.7.8 and NumPy 1.7.1
10.2.1Python 2.7.5 and NumPy 1.7.1
10.2.2Python 2.7.5 and NumPy 1.7.1
10.2Python 2.7.3 and NumPy 1.6.1
10.1Python 2.7.2 and NumPy 1.6.1
10.0Python 2.6.5 and NumPy 1.3.0

ArcGIS Enterprise

ArcGIS Enterprise also ships with Python. In recent releases, both Python 2.x and Python 3.x runtimes are provided.

ArcGIS Enterprise VersionsPython, NumPy, and Matplotlib Versions
10.9Python 2.7.18, NumPy 1.9.3, and matplotlib 1.5.2
10.9Python 3.7.9, NumPy 1.19.1, and matplotlib 3.3.1
10.8.1Python 2.7.18, NumPy 1.9.3, and matplotlib 1.5.2
10.8.1Python 3.6.10, NumPy 1.18.1, and matplotlib 3.2.1
10.8Python 2.7.16, NumPy 1.9.3, and matplotlib 1.5.2
10.8Python 3.6.9, NumPy 1.16.5, and matplotlib 3.1.1
10.7.1Python 2.7.16, NumPy 1.9.3, and matplotlib 1.5.2
10.7.1Python 3.6.8, NumPy 1.16.2, matplotlib 3.0.3
10.7Python 2.7.15, NumPy 1.9.3, and matplotlib 1.5.2
10.7Python 3.6.6, NumPy 1.15.1, matplotlib 2.2.3
10.6.1Python 2.7.14, NumPy 1.9.3, and matplotlib 1.5.2
10.6.1Python 3.6.5, NumPy 1.14.2, matplotlib 2.2.2
10.6Python 2.7.14, NumPy 1.9.3, and matplotlib 1.5.2
10.6Python 3.6.2
10.5.1Python 2.7.13, NumPy 1.9.3, and matplotlib 1.5.2
10.5.1Python 3.5.3
10.5Python 2.7.12, NumPy 1.9.3, and matplotlib 1.5.2
10.5Python 3.5.2
10.4 and 10.4.1Python 2.7.10, NumPy 1.9.2, and matplotlib 1.4.3
10.4 and 10.4.1Python 3.4.1
10.3.xPython 2.7.8, NumPy 1.7.1, and matplotlib 1.3.0
10.2.1 and 10.2.2Python 2.7.5 and NumPy 1.7.1
10.2Python 2.7.3 and NumPy 1.6.1
10.1Python 2.7.2 and NumPy 1.6.1
10.0Python 2.6.5 and NumPy 1.3.0

ArcGIS Notebook Server

Each notebook runtime in ArcGIS Notebook Server packages a precise list of Python libraries, including a specific version of each. If you need a library that is not in either runtime by default, you can extend a notebook runtime to include it. Refer to ArcGIS Notebook Server: Available Python libraries for a complete list of the Python libraries packaged in each default runtime.

Related Information

Last Published: 7/14/2021

Article ID: 000013224

Software: and prior) 10, ArcGIS Desktop 10, ArcGIS Enterprise 10.6.1, 10.6, 10.5.1 ArcGIS for Desktop 10.5, 10.4.1, 10.4, 10.3.1, 10.3, 10.2.2, 10.2.1, 10.2, 10.1 ArcGIS GIS Server 10.5, 10.4.1, 10.4, 10.3.1, 10.3, 10.2.2, 10.2.1, 10.2, 10.1, (10.0, Desktop 10.6.1, 10.6, 10.5.1 ArcGIS Pro 2.8.1, 2.8, 2.7.4, 2.7.3, 2.7.2, 2.7.1, 2.7, 2.6.6, 2.6.5, 2.6.4, 2.6.3, 2.6.2, 2.6.1, 2.6, 2.5.2, 2.5.1, 2.5, 2.4.3, 2.4.2, 2.4.1, 2.4, 2.3.3, 2.3.2, 2.3.1, 2.3, 2.2.4, 2.2.3, 2.2.2, 2.2.1, 2.2, 2.1.3, 2.1.2, 2.1.1, 2.1, 2.0.1, 2.0, 1.4.1, 1.4, 1.3.1, 1.3, 1.2