Chris
Chris

Reputation: 10041

How do I make Python site packages available outside of my install directory?

I'm running windows 7 and have installed Python 2.7.3. My install directory is C:\Python27 and the packages I've downloaded (e.g numpy, pyserial, scipy, etc.) can be found in C:\Python27\Lib\site-packages.

Is it possible to install a library (in particular pyserial) to a network drive? Ultimately what I'm trying to achieve is for anyone with Python installed on their machine to be able to run something, even if they haven't installed a particular library.

Upvotes: 0

Views: 85

Answers (1)

John
John

Reputation: 13699

sys.path.append is what you are looking for.

Upvotes: 1

Related Questions