Error No Module Named Beautifulsoup
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the
Importerror No Module Named Beautifulsoup Mac
company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions from bs4 import beautifulsoup importerror no module named bs4 Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million no module named beautifulsoup windows programmers, just like you, helping each other. Join them; it only takes a minute: Sign up No module named BeautifulSoup (but it should be installed) up vote 3 down vote favorite I downloaded BeautifulSoup. Then I upgraded
No Module Named Beautifulsoup Mac
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? python share|improve this question edited Oct 22
Beautifulsoup No Module Named Bs4
'15 at 18:22 Wondercricket 2,0341925 asked Oct 22 '15 at 17:14 ryguy7272 6081415 1 Try from bs4 import BeautifulSoup crummy.com/software/BeautifulSoup/bs4/doc/#quick-start –Colonel Panic Oct 22 '15 at 17:18 See also stackoverflow.com/a/12902800/284795 –Colonel Panic Oct 22 '15 at 17:18 This did the trick: from bs4 import BeautifulSoup Thanks everyone!! –ryguy7272 Oct 22 '15 at 18:13 add a comment| 1 Answer 1 active oldest votes up vote 7 down vote accepted I think it should be from bs4 import BeauitfulSoup :) share|improve this answer answered Oct 22 '15 at 17:19 Almog 39117 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged python or ask your own question. asked 11 months ago viewed 2892 times active 11 months ago Linked 8 Where is BeautifulSoup4 hiding? Related 754Calling a function of a module from a string with the function's name in Python1657How do I install pip on Windows?16No module named Image tk2Django Taggit Module Installation Error: No module named setup tools0pip i
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn beautifulsoup find all more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags
Attributeerror: Type Object 'beautifulsoup' Has No Attribute 'beautifulsoup'
Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, cannot import name beautifulsoup helping each other. Join them; it only takes a minute: Sign up No module named beautifulsoup up vote 0 down vote favorite I'm trying to use py2exe to convert a python script into a .exe, but I http://stackoverflow.com/questions/33286790/no-module-named-beautifulsoup-but-it-should-be-installed get the error no module named 'BeautifulSoup'. I have BeatifulSoup 3 and 4 installed. I also tried [BS4.BeautifulSoup] and [BeautifulSoup4] from distutils.core import setup import py2exe setup( windows=[{'script': 'strange.py'}], options={ 'py2exe': { 'includes': ['BeautifulSoup'], } } ) python beautifulsoup py2exe share|improve this question edited Feb 8 '15 at 18:50 Fermi paradox 2,15041541 asked Feb 8 '15 at 18:44 TotalNewb 12 does it work when directly executing it as python? –Marcus Müller Feb 8 '15 http://stackoverflow.com/questions/28397879/no-module-named-beautifulsoup at 18:45 From bs4 import Beautifulsoup works in the Python command line. –TotalNewb Feb 8 '15 at 18:48 You're importing from bs4 from the repl, so use bs4 in your config. –KevinOrr Feb 8 '15 at 19:01 You mean use 'includes': ['bs4']? Because that gives me the error 'no module bs4' –TotalNewb Feb 8 '15 at 19:04 Did you try 'includes': ['beautifulsoup4']? –jbihan Feb 8 '15 at 19:11 | show 4 more comments 1 Answer 1 active oldest votes up vote 1 down vote The following thread should provide the solution to your problem. Py2exe doesn't find bs4 Apparently, py2exe does not support compressed eggs, so the key is to uninstall BeautifulSoup and reinstall with --always-unzip option: easy_install --always-unzip beautifulsoup4 share|improve this answer answered Jan 6 at 20:11 floydn 31418 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged python beautifulsoup py2exe or ask your own question. asked 1 year ago viewed 623 times active 9 months ago Linked 0
December You Can't Be Serious > (1) Sat Aug 27 2011 20:29 "No Module Named BeautifulSoup": Since Beautiful Soup 4 is not backwards compatible https://www.crummy.com/2011/08/27/0 with Beautiful Soup 3, I put it in a different module: bs4 instead of BeautifulSoup. In a non-ironic twist, the module rename has itself turned out to be the biggest compatibility problem between BS3 and BS4. The new module name has caused problems on several occasions where users thought BS4 worked just like BS3, or didn't even know they were using BS4 (1 2 3). Why would no module you be using BS4 without knowing it? It's an unreleased beta. Well, that's happened before. When I made the BS4 alpha release, I put the tarball in /software/BeautifulSoup/download/4.x, and PyPI picked it up because it knows /software/BeautifulSoup/download/ is where I keep my tarballs. PyPI believed the 4.0 alpha to be the latest release of BeautifulSoup and started recommending it it to all and sundry, which was not no module named what I wanted. So I moved the 4.x tarballs into a different directory that PyPI doesn't know about: /software/BeautifulSoup/unreleased/4.x/, and that solved the problem. But now it was happening again. Some installation process or other was finding my /unreleased/ directory, picking up the beta tarball, and installing it by default as the latest version of Beautiful Soup. Why? Thanks to the bug Brian Shumate filed today I tracked the problem down. It turns out the pip package-installer program scrapes the Beautiful Soup homepage (using regexes, not Beautiful Soup, ha). It looks for tarballs and picks the one with the biggest version number. So just by linking to the beta tarball and giving it a "4.0" name I was declaring 4.0 ready for prime time. So I got a couple problems: I've changed the link so I link to "BeautifulSoup-beta.tar.gz", which doesn't contain an explicit version number. I'm not terribly happy with this solution. Is there a way to tell pip to ignore certain tarballs? I've scanned the source code and it doesn't look like there is. People aren't going to stop writing from BeautifulSoup import BeautifulSoup even once BS4 is released. I don't see a way to make sur