Trouble importing BeautifulSoup in python
-
27-09-2019 - |
Question
I've unpacked BeautifulSoup into c:\python2.6\lib\site-packages, which is in sys.path
, but when I enter import BeautifulSoup
I get an import error saying no such module exists. Obviously I'm doing something stupid... what is it?
Solution
You might have more than one python version installed? Check the version you are running.
Also, I found using easy_install
worked well for installing BeautifulSoup.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow