cisco IOS XE 17.16.x — Updating the Cisco CLI Python Module

Platforms with CentOS 7 support the installation of Redhat Package Manager (RPM) from the open source repository. Updating the Cisco CLI Python Module The Cisco CLI Python module and EEM module are pre-installed on devices. However, when you update the Python version by using either Yum or prepackaged binaries, the Cisco-provided CLI module must also be updated. Note When you update to Python Version 3 on a device that already has Python Version 2, both versions of Python exist on the device. Use one of the following IOS commands to run Python: • The guestshell run python2 command enables Python Version 2. • The guestshell run python3 command enables Python Version 3.

• The guestshell run python command enables Python Version 2. Use one of the following methods to update the Python version: • Standalone tarball installation • PIP install for the CLI module Shells and Scripting Updating the Cisco CLI Python Module Python Version Platform Python Version 3.6 Supported in Cisco IOS XE Amsterdam 17.1.1 and later releases. In Cisco IOS XE Amsterdam 17.1.1 and Cisco IOS XE Amsterdam 17.2.1, Python V2 is the default. However, in Cisco IOS XE Amsterdam 17.3.1 and later releases, Python V3 is the default. Note Cisco Catalyst 9200 Series Switches do not support Python Version 3.6 in Cisco IOS XE Amsterdam 17.1.1 and Cisco IOS XE Amsterdam 17.2.1.

Cisco Catalyst 9200 Series Switches support Python V3 in Cisco IOS XE Amsterdam 17.3.1 and later releases. Note Not supported by Cisco Catalyst 3650 Series Switches and Cisco Catalyst 3850 Series Switches. Programmability Configuration Guide, Cisco IOS XE 17.16.x 140