/
INSTALL
60 lines (46 loc) · 1.3 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#####
# Install notes for this project. Assumes you're using ubuntu.
# See requirements.txt for all python modules used.
#####
PROJECT_NAME=EXAMPLE
sudo apt-get install git gfortran g++
sudo apt-get install python-dev python-pip
# Setup VirtualEnv
sudo apt-get python-virtualenv
pip install virtualenvwrapper
source /usr/local/bin/virtualenvwrapper.sh
#export WORKON_HOME=$HOME/.virtualenvs
mkvirtualenv $PROJECT_NAME
workon $PROJECT_NAME
# numpy,scipy, math libraries
pip install numpy scipy
# matplotlib dependencies
sudo apt-get build-dep python-matplotlib
pip install matplotlib
# IPython + goodies
pip install IPython
sudo apt-get install qt4-dev-tools
pip install sip
cd `virtualenvwrapper_derive_workon_home`/$PROJECT_NAME/build/sip
python configure.py
make
make install
pip install pyqt
cd `virtualenvwrapper_derive_workon_home`/$PROJECT_NAME/build/pyqt
python configure.py
make
make install
sudo apt-get install libzmq-dev
pip install tornado pygments pyzmq
# pandas
# pip install nose cython
pip install -e git+https://github.com/wesm/pandas#egg=pandas
pip install -e git+https://github.com/statsmodels/statsmodels#egg=statsmodels
#nltk
#sudo apt-get install wordnet-dev
pip install nltk
# cleanup
cd `virtualenvwrapper_derive_workon_home`/$PROJECT_NAME
rm -rf build
# Project Specific code
sh mongoimport.sh