CentOS 7 upgrade, install Python 3.5.2

CentOS 7 upgrade, install Python 3.5.2

1. Install possible dependencies

 yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel yum -y install gcc automake autoconf libtool make yum install gcc gcc-c++ yum -y install readline-devel yum groupinstall 'Development Tools'

2. Install Python 3.5.2

 wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz tar -zxvf Python-3.5.2.tgz cd Python-3.5.2 mkdir /usr/local/python3.5.2 ./configure --prefix=/usr/local/python3.5.2 make && make install mv /usr/bin/python /usr/bin/python2.7 ln -s /usr/local/python3.5.2/bin/python3.5 /usr/bin/python

If mv /usr/bin/python /usr/bin/python2.7 shows that the files are the same, execute

 rm -rf /usr/bin/python

Then

 ln -s /usr/local/python3.5.2/bin/python3.5 /usr/bin/python

3.

 vi /usr/bin/yum

Change the Python version specified in the first line to python2.7 (#!/usr/bin/python to #!/usr/bin/python2.7)

 vi /usr/libexec/urlgrabber-ext-down

Change the Python version specified in the first line to python2.7 (#!/usr/bin/python to #!/usr/bin/python2.7)

The above will successfully install Python 3.5.2.

4. Install go
https://who.edu.pl/10693.html

5. Install sanic
python -m pip install sanic

python -m pip install aiocache
python -m pip install sanic_session
python -m pip install jinja2
python -m pip install motor
python -m pip install async_timeout
python -m pip install arrow
python -m pip install vloop
python -m pip install
python -m pip install
python -m pip install

python server.py

6. Install Selenium
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install -U selenium

<<:  LeaseWeb: 20th Anniversary Offer

>>:  ua-hosting: $29/month/10GB RAM/240GB SSD space/10TB bandwidth/KVM/Netherlands

Recommend

Dediserve: 5€/month/Xeon E5/1GB memory/30GB SSD/1.5TB traffic/1 IP/Singapore

Dediserve is a foreign hosting company founded in...

IndoVirtue: $4/month/512MB/5GB SSD space/500GB traffic/KVM/Singapore

IndoVirtue, founded in late 2010, provides Singap...

vMbox: $3.99/month/2 cores/1G/25G/3T/1 IP/OpenVZ/free SSL

VMBox is an American hosting company established ...

Creating a separate tab page in WordPress

The main purpose of creating a tag page is to fac...

CubeData: $3/month/512MB RAM/25GB storage/unlimited traffic/KVM/Dallas

CubeData, an American hosting provider, provides ...

ExpertVM: $7/month/1GB memory/1TB space/1.5TB traffic/1Gbps port/KVM/Singapore

ExpertVM, a Singapore hosting provider, was estab...

ISPlicense: Selling ISPsystem, Plesk, DirectAdmin, Cpanel and other licenses

ISPlicense, a Russian merchant, was established i...