Python Import Library From Tar.gz?
I am working on a box which I don't have root access. However, there is a folder /share which would be accessed for everyone to read and write. I want to figure out a way to put p
Solution 1:
tar.gz
is the source code of the library. You should unpack it, and you will find a setup.py
script inside. Run:
python setup.py install --prefix=/share/pythonLib
This will create:
/share/pythonLib/lib/python2.7/site-packages/
In your scripts append that path to sys.path
and everything should work fine.
Post a Comment for "Python Import Library From Tar.gz?"