Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No module named BeautifulSoup (but it should be installed) [duplicate]

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?

like image 796
ASH Avatar asked Oct 22 '15 17:10

ASH


1 Answers

I think it should be: from bs4 import BeautifulSoup.

like image 130
Almog Avatar answered Nov 12 '22 01:11

Almog