Personal tools
Document Actions

How to set up PYTHONPATH on Windows?

Up to table of contents

This FAQ applies to: 1.4.5

MGLTools is not installed in Lib\site-packages folder of your Python installation and you are getting an ImportError.
If you are getting ImporError messages similar to this one ImportError: No module named Pmv, you'll need to set PYTHONPATH Environment Variable to point to the location of MGLToolsPckgs.

To set the PYTHONPATH variable:
  1. Go to Control Panel -> System-> Advanced.
  2. Click 'Environment Variables' button.
  3. In the 'System Variables' panel that appears, click New and enter PYTHONPATH in the 'Variable Name' field. In the 'Variable Value' field enter path to MGLToolsPckgs (e.g. C:\Program Files\MGLTools-1.4.5\MGLToolsPckgs).

Note that our standalone installer creates/modifies C:\Python24\Lib\sitecustomize.py to include the latest version of MGLToolsPckgs in your path.


by Sargis Dallakyan last modified 2008-10-21 09:57 Molecular Graphics Laboratory, TSRI

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: