Installing python modules in your home

If you are working on a computer where you need python modules that are not installed and you haven’t enough privileges you can install them in your home folder following these instructions:

cd lxml-2.3 
python build
python install --home=~

In this example I’m compiling the lxml source. In the third line the setup script creates the directory structure ~/lib/python (notice that you just gave it ~ as the home option) and places the lxml module inside.

As a last step you need to add ~/lib/python to the path list set in the PYTHONPATH variable in your ~/.bashrc and if it doesn’t exist, define it.

1 Comment

  1. On your flyer, create a very captivating message with the use of images. In addition to that, you have to make absolutely sure that you do not abuse the network in any way. There has got to be a link between the client and also the mobile network operators and this link in technical terms is named bulk SMS supplier.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>