Installing Prerequisite Python Packages

If you are running these notebooks on Binder, then there is no need to run this notebook. However, if you running these notebook on your own computer or on a different service, then the necessary Python packages may not be installed.

By executing (Shift-Enter) the code cells below, you will instruct pip (a Python package manager) to install the necessary packages.

In [ ]:
# Basic packages for doing data analysis
!pip install numpy matplotlib pandas
In [ ]:
# Libraries necessary for accessing Yahoo Finance
!pip install yahoo_fin requests_html
In [ ]:
# A Python package for interfacing with Twitter's API
!pip install twitter
In [ ]:
# Make nicer text-based tables
!pip install prettytable
In [ ]:
# The Natural Language Toolkit
!pip install nltk
In [ ]:
# For parsing HTML
!pip install beautifulsoup4
In [ ]:
# For accessing and parsing RSS feeds
!pip install feedparser
In [ ]:
# Small, fast HTTP client
!pip install httplib2
In [ ]:
# A prerequisite for dragnet
!pip install cython
In [ ]:
# Using machine learning for distinguishing main webpage content from boilerplate
!pip install dragnet
In [ ]:
# The premier machine learning library for Python
!pip install scikit-learn