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

NameCheap: Domain transfer discount com $4.88/year, net $5.94/year

NameCheap, the latest domain name transfer discou...

DirectSpace openvz vps simple review (512M Portland)

之前站點一直建在DirectSpace上,速度和穩定性都不錯,下面是一些簡單評測: 1、主機性能CP...

$14.95/year/128M/10G space/500G traffic/OpenVZ/DDos —— RaidLogic

I have introduced RaidLogic before, but the price...

VPS collection and recommendation without copyright restrictions

I guess many people need it. The host encyclopedi...

HudsonValleyHost: $5/month/4GB RAM/300GB storage/5TB traffic/OpenVZ/Los Angeles

HudsonValleyHost, owned by cc, is a stable mercha...

$4/month/512M/25G space/250G traffic VPS —— WhiteLabeHosting

According to the official introduction of WhiteLa...

G-CORE 512MB RAM 500Mbps Bandwidth Russia Khabarovsk KVM VPS Review

Details : G-CORE: 9.6 yuan/month/512MB memory/7GB...