Skip to content

InstallPython34CentOS

Richard Walker edited this page Jan 6, 2015 · 6 revisions

Install gcc for compiling Python from source

sudo yum install gcc

Install lib_ssl open_ssl and open_ssl_dev before compiling Python. (If you already followed the instructions for installing ANDS-Registry-Core, you will have these installed.)

sudo yum install mod_ssl openssl openssl-devel

Download and install Python 3.4

cd
wget https://www.python.org/ftp/python/3.4.2/Python-3.4.2.tgz
tar zxf Python-3.4.2.tgz
cd Python-3.4.2
./configure
make 
make test (if you are not sure if it will work)
sudo make install

Install PyMySQL

sudo /usr/local/bin/pip3 install PyMySQL

Python 3.4 is now installed correctly. You can test it by running /usr/local/bin/python3 --version

Clone this wiki locally