Installing BeautifulSoup For Python 3
Environment: MS Windows 7
Python 3.4 or above:
Normally, the command for calling pip is pip3.4 as below
(Linux) #pip3.4 install beautifulsoup4
(Windows) #python -m pip install beautifulsoup4
Successfully installed BeautifulSoup4-4.3.2
Previous Version (<3.4) 2015 Apr 13: pip is included in Python 3.4, solution below is not necessary
Did you encounter problem during install BeautifulSoup? For me (newbie) , YES
I tried the following command, but not work
>python setup.py install
Finally, I have find my way out. It's pretty simple acutally.
-----------------------------------------------------------------------------------------------------------------------
First of all, you must download BeautifulSoap version which able to support Python 3.
You can find the latest version here:
http://www.crummy.com/software/BeautifulSoup/bs4/download
How to Install?
You can easily install BS with easy_install
For the installation of easy_install (If you can't find it in C:\Python\Scripts\ )
download: http://pypi.python.org/packages/source/d/distribute/
Please see the picture below:
Python 3.4 or above:
Normally, the command for calling pip is pip3.4 as below
(Linux) #pip3.4 install beautifulsoup4
(Windows) #python -m pip install beautifulsoup4
Successfully installed BeautifulSoup4-4.3.2
Previous Version (<3.4) 2015 Apr 13: pip is included in Python 3.4, solution below is not necessary
Thank you, sy. You provided an elegant solution which worked well also in my case.
ReplyDeleteyou're welcome :)
DeleteThanks! Now I can proceed!
ReplyDeleteThanks. It's working ;)
ReplyDeleteThank you I was having trouble figuring this out :)
ReplyDeleteVery nice solution provided.
ReplyDeleteThanks
ReplyDeleteCan anyone tell me why beautifulsoup is installing in my Anacaonda folder? I performed the install from the folder where python programs are kept along with the "beautifulsoup4-4.4.1.tar.gz" file downloaded from crummy.
ReplyDeletehttps://dl.dropboxusercontent.com/u/21123266/Python%20Questions/Capture.PNG
please try using pip instead of easy_install
Deletecommand as below:
python -m pip install beautifulsoup4