Additional Python packages

Anaconda's Python Distribution comes with many of the packages we need to do scientific computing. If you're interested in all the packages included, click here and go to the Python 3.6 tab.

However, you may come across packages that are not installed by default. In this case we recommend you use the pip package management tool to install them. The following recipe works for all operating systems.

First let us update pip by typing the following into the terminal

1
pip install --upgrade pip

If you get an error, try typing instead:

1
python -m pip install --upgrade pip

For this course, we will need the package Selenium as part of the web scraping tool kit we will build up. First let us install a dependency for it via

1
pip install msgpack

We then install selenium by entering the following into a terminal:

1
pip install selenium

pip will then go through and install the package we asked for, and any other dependencies. If this succeeded, the last line it printed out should be:

1
Successfully installed selenium-3.14.0

More packages

Please also install the following packages:

  • linearmodels
  • virtualenvwrapper