How To Install Python Data Science Stack

http://datascienceguide.github.io/how-to-install-the-python-data-science-stack-on-a-remote-server

http://pip.readthedocs.io/en/latest/user_guide/#requirements-files
http://pip.readthedocs.io/en/latest/reference/pip_install/#requirements-file-format

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:

numpy
scipy
matplotlib
pandas
sympy
Seaborn
statsmodels
scikit-learn
SQLAlchemy
pyzmq
jinja2
tornado
nltk
pattern
gensim
Scrapy
tweepy
bokeh
networkx
requests
blaze
regex
nose
psycopg2
textblob

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

More

textblob

http://textblob.readthedocs.io/en/dev/install.html

Extra installation requirement:

$ python -m textblob.download_corpora

This will install TextBlob and download the necessary NLTK corpora.

bokeh

http://bokeh.pydata.org/en/latest/docs/user_guide/setup.html

blaze

https://github.com/blaze/blaze

pattern

https://github.com/clips/pattern
http://www.clips.ua.ac.be/pages/pattern

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.