In order to use the OpenEye Python toolkits, a compatible version of Python must be installed. Instructions on installing Python are given in this document. The Python toolkits are sensitive to the version of the compiler and Python.
Python 2 is supported only with version Python 2.7. For older platforms, such as RHEL5, this might not be the default Python compiler.
Python 3 is fully supported as of the 2014.Jun toolkit release. Python 3 is binary compatible between minor versions on Linux and OSX, so the “python3” distribution works in for Python 3.3 and higher. On Windows, 3.5 and 3.6 are supported. Below are the different Python versions supported for various platforms.
OpenEye is planning to phase out Python 2 support by the 2017.Oct release. As this is a substantial change for us and our customers, we are willing to help with code migration, either with advice or hands-on work with your code-base. Please contact firstname.lastname@example.org for more details.
Non-default versions of Python are built using the default compiler for that platform. For example, Python 2.7 on RHEL6 is compiled with GCC 4.4.
Python is pre-installed on OS X, but may need to be installed for your Linux system. For Linux, it is preferable to use your system’s default package manager, such as yum or apt.
Download the Python installer appropriate for your Windows system from http://www.python.org/download/.
Make sure to get the 32-bit version of Python if your system is only 32-bit Windows. The 32-bit version will work on 64-bit Windows, but not vice versa. Care should be taken to download the corresponding 32-bit or 64-bit version of the OpenEye toolkits as well.
After downloading the installer file, double-click on the file and follow through the install wizard to complete the installation. Be sure to make a note of the location of the Python installation (e.g. C:\Python27).
Once Python is installed, set your system’s Path environment variable to include your Python’s installation location. For example, on Windows 7, press the Windows start button, then right-click on “Computer”, choose “Properties” from the menu that pops up, then click on “Advanced system settings”. On the next window that pops up, click on the “Advanced” tab (if not already selected) and click on the “Environment Variables...” button. Another window will appear, and in the bottom “System variables” section, scroll to the “Path” variable and click on the “Edit...” button. In the “Edit System Variable” dialog that appears, scroll to the beginning of the “Variable value” field value and copy the location of your Python installation, ending with a semi-colon to separate it from the rest of the Path value (e.g. “C:\Python27;”). (Be sure not to delete or modify the rest of the Path variable.) Then click the “OK” buttons to close all the opened system settings windows and to force the new setting to take effect.