Not logged in - Login
< back

Python Setup

IWDW servers have a Python environment configured at /var/3SDWPython/

Build From Source

sudo yum -y install openssl zlib openssl-devel zlib-devel wget
sudo yum groupinstall "Development Tools"
mkdir pysource
cd pysource
sudo yum install wget -y
wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13rc1.tgz
tar -xzf Python-2.7.13rc1.tgz
cd Python-2.7.13rc1
sudo mkdir /var/3SDWPython
sudo chown root:3sdw /var/3SDWPython
sudo chmod -R ug+rwx /var/3SDWPython/
sudo yum groupinstall "Development Tools"
./configure --prefix=/var/3SDWPython --with-zlib-dir=/usr/local/lib
make
make install

Install pip

wget https://bootstrap.pypa.io/get-pip.py
/var/3SDWPython/bin/python2.7 get-pip.py

Install Dependencies

sudo yum -y install netCDF netCDF-devel gdal gdal-devel proj proj-devel
/var/3SDWPython/bin/pip install netCDF4
/var/3SDWPython/bin/pip install GDAL==1.11
/var/3SDWPython/bin/pip install proj