Author Topic: python3.7 and pip3  (Read 6342 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
python3.7 and pip3
« on: March 25, 2019, 12:38:53 PM »
How to upgrade python to python3.7 and install pip3 on CWP server?

Offline
***
Re: python3.7 and pip3
« Reply #1 on: March 26, 2019, 02:21:32 AM »
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

Offline
**
Re: python3.7 and pip3
« Reply #2 on: March 26, 2019, 05:55:26 PM »
Hello,

Please install python from source

Offline
**
Re: python3.7 and pip3
« Reply #3 on: March 26, 2019, 08:40:34 PM »
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