python installation and deployment environment on the doker

python deployment environment

Today, we will be content to learn is how to deploy Django project on linux servers, linux systems we deploy are centos7 First, let's build our Python3 environment on linux:

First emphasize here, Centos7 system comes Python2 we do not remove, we need to do is to co-exist in Python2 and python3.

1, the installation of the dependent packages Python3

2, the command:

[root@localhost Desktop]# yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make -y

       

       

       

3, then download installation package Python3

Command: wget  https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tar.xz

       

Extracting installation package

Command tar -xvJf Python-3.5.2.tar.xz

        

 

Cut into the directory, compiled installation

[root@localhost Desktop]# cd Python-3.5.2/

[root@localhost Python-3.5.2]# ./configure prefix=/usr/local/python3

        

        

make && make install

        

        

3, configure the environment variables

Command: ln -s / usr / local / python3 / bin / python3 / usr / bin / python3

        

Command: ln -s / usr / local / python3 / bin / pip3 / usr / bin / pip3

         

Results are as follows:

         

         

Guess you like

Origin www.cnblogs.com/wutanghua/p/11105022.html