0% found this document useful (0 votes)
56 views2 pages

Instalacion de Python 3 en Centos

This document provides instructions for installing Python 3 on a CentOS system in 4 steps: 1) Install prerequisites like GCC compiler, 2) Download Python 3.6 from the official site, 3) Compile and install Python using configure, make, and make altinstall, 4) Check the Python version and add the path to enable commands. It also provides commands for installing common Python packages like Django, psycopg2, and paramiko using pip.

Uploaded by

Iván Farez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views2 pages

Instalacion de Python 3 en Centos

This document provides instructions for installing Python 3 on a CentOS system in 4 steps: 1) Install prerequisites like GCC compiler, 2) Download Python 3.6 from the official site, 3) Compile and install Python using configure, make, and make altinstall, 4) Check the Python version and add the path to enable commands. It also provides commands for installing common Python packages like Django, psycopg2, and paramiko using pip.

Uploaded by

Iván Farez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

INSTALACIÓN DE PYTHON 3 EN CENTOS

Step 1 – Requirements
This Python installation required GCC compiler on your system. Login to your server using
ssh or shell access. Now, use the following command to install prerequisites for Python
before installing it.

yum install gcc openssl-devel bzip2-devel

Step 2 – Download Python 3.6


Download Python using the following command from python official site. You can also
download the latest version in place of specified below.

cd /usr/src
wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz

Now extract the downloaded package.

tar xzf Python-3.6.4.tgz

Step 3 – Install Python 3.6


Use below set of commands to compile Python source code on your system using altinstall.

cd Python-3.6.4
./configure --enable-optimizations
make altinstall

make altinstall is used to prevent replacing the default python binary file
/usr/bin/python .

Now remove downloaded source archive file from your system

rm /usr/src/Python-3.6.4.tgz

Step 4 – Check Python Version


Check the latest version installed of python using below command.

python3.6 -V
Python 3.6.4

Agregar variable de entorno

export PATH="/usr/local/bin:$PATH"

Instalar Django:

Pip3.6 install Django==1.8.2

Instalar psycopg2

pip3.6 install psycopg2

Instalar paramiko

pip3.6 install paramiko

Instalar widget_tweaks

pip3.6 install django-widget-tweaks

You might also like