Installing Packages
This webpage explains how to install third-party Python packages using the package manager pip. It then explains how to install the BeautifulSoup package needed for HW3.
Ubuntu
From the command line, type:
sudo apt-get install python-pip
Once that finishes installing, type
sudo pip install BeautifulSoup
Windows
Download and install Distribute.
Then download and install pip.
Once that is finished, open up a command line prompt by clicking the Start button, then in the "Search programs and files" bar, type "cmd".
Then type the following:
cd c:\Python27\Scripts
pip install BeautifulSoup
Then the next time you start the Python command line, type "import BeautifulSoup" to verify everything worked.
Mac
Open up a terminal window, like the Terminal program in the dropdown menu Finder > Go > Utilities > Terminal. Type the following (in this order):
wget http://pypi.python.org/packages/source/p/pip/pip-1.3.tar.gz
tar xzf pip-1.3.tar.gz
cd pip-1.3
sudo python setup.py install
sudo pip install BeautifulSoup
If you have trouble with the installation, check to make sure you have an updated version of Python.