Installing packages into PythonWin

Brian Quinlan BrianQ at ActiveState.com
Thu Aug 23 20:39:44 EDT 2001


> I am having trouble installing a package (specifically the
> Python Imaging Library) into PythonWin. Copying the files
> into the Lib/sites-packages directory did not install the
> PIL automatically, I eventully got it to work by manually
> adding the PIL location to the Python path. I am sure that
> the sites-packages trick worked on the generic (ie non
> Active State) Python distribution, and it adds directories
> to the Python path depending on the contents of and files
> with extension .pth that are in the sites-packages
> directory.

site-packages is not part of the Python path on Windows. There is a
PEP that is scheduled for Python 2.2 that seeks to rectify that but
you will have to hack around it for now:
http://python.sourceforge.net/peps/pep-0250.html

Cheers,
Brian





More information about the Python-list mailing list