Install module - Python

software development

#1

Hi everyone, I am trying to install a custom python module BeautifulSoup, I see on the docs http://wiki.dreamhost.com/Python

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:


#2

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!

Chris


#3

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: https://discussion.dreamhost.com/thread-148512.html?highlight=virtualenv+python


#4

@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!

Chris


#5

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

Chris