Skip to content

Instantly share code, notes, and snippets.

@lmatthieu
Last active August 29, 2015 14:21
Show Gist options
  • Save lmatthieu/424023cba01d5dacc117 to your computer and use it in GitHub Desktop.
Save lmatthieu/424023cba01d5dacc117 to your computer and use it in GitHub Desktop.
DataScience Python 2.7 - Packages install
## No-internet access mode
yum install gcc openssl-devel zlib-devel blas-devel lapack-devel gcc-c++ bzip2-devel lzo-devel freetype-devel libpng-devel sqlite-devel
## Python 2.7.9 installation from sources
cd /tmp
wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz
tar -zxvf Python-2.7.9.tgz
cd Python-2.7.9
./configure
make -j 4 install
python2.7 -m ensurepip
## HDF5 installation from sources
wget http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.15.tar.gz
tar zxvf hdf5-1.8.15.tar.gz
cd hdf5-1.8.15
./configure --prefix /usr/local
make -j 8 install
### Offline packages installation
pip install --no-index --find-links=/tmp/pip_repo -r requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment