Skip to content

Instantly share code, notes, and snippets.

@gparuthi
Last active August 29, 2015 13:56
Show Gist options
  • Save gparuthi/8967631 to your computer and use it in GitHub Desktop.
Save gparuthi/8967631 to your computer and use it in GitHub Desktop.
Non root installation of the Sci-Py stack

##Install Python

http://www.python.org/getit/

##Install sqlite3

https://sqlite.org/download.html

##Build sqlite3 and Python

Create a local directory

cd sqlite-autoconf-3080100
./configure --prefix=/home/xdanek7/appscale/local
make
make install
cd ../Python-2.7.6
./configure --prefix=/home/xdanek7/appscale/local
make
make install

Source

Downlaod VirtualEnv

  • Download virtualenv Source:
  • Create environment
python ./softs/virtualenv/virtualenv.py -p ~/local/bin/python ENV

##Install scipy stack

pip install -U setuptools
pip install -U pip

pip install numpy
pip install scipy
pip install matplotlib
pip install PySide
pip install ipython[all]
pip install patsy
pip install pandas
pip install sympy
pip install nose

pip install statsmodels
pip install zipline
pip install quandl

###Create ipython notebook profiles

ipython profile create nbserver

Edit the ~\.ipython\profile_nbserver\ipython_notebook_config.py

c = get_config()

# Kernel config
c.IPKernelApp.pylab = 'inline'  # if you want plotting support always

# Notebook config
c.NotebookApp.certfile = u'/home/vagrant/mycert.pem'
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.password = u'sha1:1dd02626f1e4:cd564b3fb63dbcabb5ad07a474f3faa0372e01b2'
# It's a good idea to put it on a known, fixed port
c.NotebookApp.port = 9999

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment