Install module - Python

Hi everyone, I am trying to install a custom python module BeautifulSoup, I see on the docs

Installing Custom Modules
It’s recommended that you use pip to easily install custom modules. For example:
pip install
View the virtualenv section below for further details.

So in my SSH I do “pip install BeautifulSoup4” and I get:

error: could not create ‘/usr/local/lib/python2.7/dist-packages/bs4’: Permission denied

But when I do “pip install lxml”

I works

Why can I install lxml, but not beautiful soup?

Thanks for the help :slight_smile:

Did you ever get a resolution on this? I’m having the same issue with the feedparser module. If you did, can you share what you did? Thanks!


There are a couple of other threads on this forums where I gave instructions on how to install python modules in a virtualenv. Are you working on a virtualenv?

Check this thread for the step-by-step instructions:

@smaffulli - Ah okay, thanks! I saw that post but didn’t think it applied. I’m on the standard Shared Hosting. I’ll give setting up a virtualenv a try over the weekend. Thanks!


Tried it out this weekend, and it worked. Thanks!