6

I downloaded BeautifulSoup.
Then I upgraded pip:

pip install --upgrade pip

Then, installed BS:

pip install beautifulsoup4

It seems like everything worked fine, but now when I run these three lines of code:

from BeautifulSoup import BeautifulSoup
import urllib2
import csv

I get this error.

Traceback (most recent call last):
File "C:\Users\rshuell001.spyder2\temp.py", line 1, in from BeautifulSoup import BeautifulSoup ImportError: No module named BeautifulSoup

I'm using Anaconda-Spyder

What am I doing wrong?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
ASH
  • 20,759
  • 19
  • 87
  • 200

1 Answers1

17

I think it should be: from bs4 import BeautifulSoup.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Almog
  • 731
  • 4
  • 10