1. Install dependencies:
sudo apt-get install build-essential
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
2. Download:
cd ~/Downloads/
wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz
3. Extract and go to the directory:
tar -xvf Python-2.7.9.tgz
cd Python-2.7.9
4.Install using the command:
./configure
make
sudo make install
Install Matplotlib
sudo apt-get install python-numpy python-matplotlib
Install gdal
sudo apt-get install build-essential python-all-dev
wget http://download.osgeo.org/gdal/gdal-1.9.0.tar.gz
tar xvfz gdal-1.9.0.tar.gz
cd gdal-1.9.0
./configure --with-python
make
sudo make install
sudo ldconfig
No comments:
Post a Comment