I want to install Python3 on CentOS7 and use pip3.
Of course, you can't use the pip3 command.
bash: pip3: command not found
python -V When you hit
Python 2.7.5
Is displayed.
python3.6 -V When you hit
bash: python3.6: command not found
Is displayed.
Just run the following as root.
yum install python3
Then enter y,
Installed:
python3.x86_64 0:3.6.8-17.el7
Dependency Installed:
libtirpc.x86_64 0:0.2.4-0.16.el7 python3-libs.x86_64 0:3.6.8-17.el7 python3-pip.noarch 0:9.0.3-8.el7 python3-setuptools.noarch 0:39.2.0-10.el7
Complete!
Is displayed, it is successful.
python3.6 -V When you hit
Python 3.6.8
Is displayed and OK.
pip3 When you hit
Usage:
pip <command> [options]
Is displayed and OK. The pip3 command is now available.