nmar / craigslist-scraper

A Python scraper for lost and found ads in all U.S. states.
5 stars 2 forks source link

ImportError: No module named bs4 #1

Closed marclundgren closed 8 years ago

marclundgren commented 10 years ago

maybe I'm running the script wrong

➜  craigslist-scraper git:(master) ✗ python clstates.py
Traceback (most recent call last):
  File "clstates.py", line 1, in <module>
    from bs4 import BeautifulSoup
ImportError: No module named bs4
nmar commented 10 years ago

Hey Marc - I think you're either running an older version of python or have not installed Beautiful Soup...

marclundgren commented 10 years ago
Python 2.7.6
sudo pip install bs4
Password:
Downloading/unpacking bs4
  Could not find any downloads that satisfy the requirement bs4
Cleaning up...
No distributions at all found for bs4
marclundgren commented 10 years ago
which bs4
bs4 not found
marclundgren commented 10 years ago

that's probably why

monajalal commented 10 years ago

You should install bs4 using easy_install. I did it like so: sudo su easy_install BeautifulSoup4

5j9 commented 8 years ago

The correct command to install Beautiful Soup 4 is pip install beautifulsoup4, not pip install bs4.

polyakoff commented 8 years ago

@5j9 Thank you!