Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I install the Beautiful Soup module on the Mac?

I read this without finding the solution: http://docs.python.org/install/index.html

like image 414
Léo Léopold Hertz 준영 Avatar asked Jan 16 '09 22:01

Léo Léopold Hertz 준영


People also ask

How do I install a BeautifulSoup module?

To install Beautifulsoup on Windows, Linux, or any operating system, one would need pip package. To check how to install pip on your operating system, check out – PIP Installation – Windows || Linux. Wait and relax, Beautifulsoup would be installed shortly.


Video Answer


2 Answers

The "normal" way is to:

  • Go to the Beautiful Soup web site, http://www.crummy.com/software/BeautifulSoup/
  • Download the package
  • Unpack it
  • In a Terminal window, cd to the resulting directory
  • Type python setup.py install

Another solution is to use easy_install. Go to http://peak.telecommunity.com/DevCenter/EasyInstall), install the package using the instructions on that page, and then type, in a Terminal window:

easy_install BeautifulSoup4 # for older v3: # easy_install BeautifulSoup 

easy_install will take care of downloading, unpacking, building, and installing the package. The advantage to using easy_install is that it knows how to search for many different Python packages, because it queries the PyPI registry. Thus, once you have easy_install on your machine, you install many, many different third-party packages simply by one command at a shell.

like image 111
Brian Clapper Avatar answered Sep 20 '22 04:09

Brian Clapper


I think the current right way to do this is by pip like Pramod comments

pip install beautifulsoup4 

because of last changes in Python, see discussion here. This was not so in the past.

like image 32
2 revs Avatar answered Sep 19 '22 04:09

2 revs