New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

python3.7 and pip3

Started by santo, March 25, 2019, 12:38:53 PM

Previous topic - Next topic

santo

How to upgrade python to python3.7 and install pip3 on CWP server?

Netino

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

evansa

Hello,

Please install python from source

evansa

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