Knowledge Base

Article ID: 957 - Last Modified:

How can I use the Schrödinger Python modules with other Python modules?

The easiest way to use other Python modules with the Schrödinger modules is to add the path to these modules to your PYTHONPATH environment variable. Python packages generally come with a script and may be installed to a common location with

python install --prefix=pathname


python install --home=pathname

This enables you to choose the installation directory, which you can then add to your PYTHONPATH environment variable. However, if you also have modules that are incompatible with the Schrödinger modules, you can add the ones you want to use with the Schrödinger modules to the SCHRODINGER_PYTHONPATH environment variable.

To run a Python script that uses the Schrödinger modules, you must use the Python interpreter that is supplied with the Schrödinger software installation, which you can do with the command
The Schrödinger interpreter must be used because these modules rely on some environment settings, and because the modules are compiled with the specific version of Python in the installation.

Keywords: Python, script

Back to Search Results

Was this information helpful?

What can we do to improve this information?

To ask a question or get help, please submit a support ticket or email us at
Knowledge Base Search

Type the words or phrases on which you would like to search, or click here to view a list of all
Knowledge Base articles