Indigo Python Installation

Starting with Indigo 2022.1, Indigo will install two versions of Python on your server machine. This is done to account for Apple's decision to remove open source software beginning with macOS 12.3. With version 2022.1, Indigo will install and support Python 3.10.2 and Python 2.7.18. Python 2 is included to support plugins which work with older versions of Indigo. Beginning with Indigo 2022.1, all embedded and linked scripts are run in Python 3. With Indigo 2022.2, Indigo will only support Python 3 (the exact Python 3 version may be updated at a later time).

Python Installation Locations

A key component of how Python functions is a PATH environment variable which tells the macOS where to look when Python is called. The python installers we run as part of the Indigo install will attempt to update paths for you, and we put symlinks to both versions of Python in /usr/local/bin/. So if you have that location in the path (macOS may include that on the standard PATH), then python2, pip2, python3, pip3, etc, will work from the command line without a full path specifier. Indigo's python installs come directly from python.org, and they are installed in the /Library/Frameworks/Python.framework folder. Feel free to look around inside that folder to see how multiple versions are supported if you want to understand how it works.

Python Module Installation

When you install custom Python modules on your machine, the location of the associated files depends on the version of Python they are installed against.

  1. Python 3.10.2 modules are installed in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/
  2. Python 2.7.18 modules are installed in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/

More details about working with Python modules can be found on the Python Packages and Indigo page.

indigo_python_installation.txt · Last modified: 2022/05/05 22:18 by jay
 

© Perceptive Automation, LLC. · Privacy