Control Web Panel
WebPanel => Updates => Topic started by: santo on March 25, 2019, 12:38:53 PM
-
How to upgrade python to python3.7 and install pip3 on CWP server?
-
Python is available in rpm format just up to the version 7.6, in several repositories over internet.
I think you will need a tutorial to install 3.7 from sources, like suggested in:
https://tecadmin.net/install-python-3-7-on-centos/
Or, instead, search for a "testing" repository like "Remi".
Regards,
Netino
-
Hello,
Please install python from source
-
Hello,
I will recommend building from source by following the steps below:
a) Prepare Your System
# yum -y groupinstall development
# yum -y install zlib-devel
b) Download python Source Code
# cd /usr/local/src
# wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz
c) Build Python
# cd /usr/local/src
# tar xvf Python-3.6.0.tgz
# cd Python-3.6.0
# ./configure --enable-optimizations --with-ensurepip=install
# make -j 8
d)The default path of python3 will be /usr/local/bin/python3
e)After the above steps are done, upgrade pip3 by running the following comman
pip3 install --upgrade pip