- E baixar as dependências do pacote
wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz
yum install gcc -y gcc-c ++ zlib * make-y
- extraindo instalador
mkdir -p / usr / local / python3
tar -xzvf Python-3.6.1.tgz -C / opt
- Editar compilar e instalar
cd /opt/Python-3.6.1
./configure --prefix = / usr / local / python3
make && make install
- Softlinks, fácil de usar
ln -s / usr / local / python3 / bin / python3 / usr / bin / python3
- Defina a variável de ambiente python
echo "export PATH = $ PATH: $ HOME / bin: / usr / local / python3 / bin" >> ~ / .bash_profile
- teste
[Root @ nuvem Python-3.6.1] # python3 -V
Python 3.6.1