Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to install lxml on an Ubuntu VPS, but I'm having problems. There is no site-packages directory where I can put lxml. How I am supposed to install it?

I tried doing:

apt-get install python-lxml, but it says that the package is unavailable, so I tried moving it there but I don't have site-packages folder. I'm running Ubuntu 10.04 LTS with Python 2.6, or more info:

> Python 2.6.5 [GCC 4.4.3] on linux2

Any help will be appreciated, thanks!

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Can you give the error reports on running the apt-get install python-lxml command?. Generally path where modules are stored /usr/lib/. For python modules try using the python based installers PIP, easy_install!

share|improve this answer
    
Hi, first thanks for the answer. The error is ""package 'python-lxml' doesn't exist"". I have a folder called dist-packages, but no site-packages. Maybe I should put them there? But the problem is that there are no modules there, only 3 files (in dist-packages). –  maikati Jan 26 '13 at 6:32
    
Wow, I played with it an hour ago and it worked. You are awesome man, thanks, really! –  maikati Jan 26 '13 at 7:05
    
How did yu do ? PIP or easy_install! –  Andrew Jan 26 '13 at 15:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.