To avoid impact on Centos own Python 2 packages use Python3 venv
On Fedora 31 Python 3 is default
- Install Python3 https://www.liquidweb.com/kb/how-to-setup-a-python-virtual-environment-on-centos/
- Create venv https://www.liquidweb.com/kb/how-to-setup-a-python-virtual-environment-on-centos/
On Fedora 31 Python 3 is default
[dave@localhost ~]$ python3
Python 3.7.6 (default, Jan 30 2020, 09:44:41)
[GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
[dave@localhost ~]$ python2
Python 2.7.17 (default, Oct 20 2019, 00:00:00)
[GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
[dave@localhost ~]$ python
Python 3.7.6 (default, Jan 30 2020, 09:44:41)
[GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>