Using a Requirements File
“Requirements files” are files containing a list of items to be installed using pip install.
1. Open a text editor and create a text file and name it whatever you like (in this case, python-requirements.txt). Place this file in your root/home folder:
notes: added tweepy to above list
2. Run the command ‘sudo pip install -r requirements.txt', in this case I have used the filename ‘python-requirements.txt'
$ sudo pip install -r python-requirements.txt
This may take a while but that's it. You can also do the same by creating a new virtulenv, customizing the libraries that you want installed, and running the command.
Also, in order to install mysqldb:
$ sudo apt-get install python-pip python-dev libmysqlclient-dev
$ sudo pip install MySQL-python
Extra installation requirement:
$ python -m textblob.download_corpora
This will install TextBlob and download the necessary NLTK corpora.