728x90
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. |
2.7 is not supported, so you have to upgrade to 3.x.
'ls /bin | grep python' to check if there is a 3.X version.
[--@------- ~]$ ls /bin | grep python
pmpython
python
python2
python2.7
If there is no 3.X version, type sudo yum install python3 to install the 3.X version.
[--@------- ~]$ sudo yum install python3
Installed: python3.x86_64 0:3.6.8-18.el7 Dependency Installed: python3-libs.x86_64 0:3.6.8-18.el7 python3-pip.noarch 0:9.0.3-8.el7 python3-setuptools.noarch 0:39.2.0-10.el7 Complete! |
Check the version.
[--@------- ~]$ python --version
Python 2.7.5
[--@------- ~]$ python3 --version
Python 3.6.8
[--@------- ~]$ ls /bin | grep python
pmpython
python
python2
python2.7
python3
python3.6
python3.6m
Now you need to change to the Python 3.6 version you have installed.
https://clear-sky-sun.tistory.com/142
728x90
'Linux' 카테고리의 다른 글
[Linux] change python version (0) | 2022.01.21 |
---|---|
[Linux] You should consider upgrading via the 'pip install --upgrade pip' comman (0) | 2022.01.20 |
[Linux] pip install (0) | 2022.01.20 |
is not in the sudoers file. This incident will be reported. (0) | 2022.01.19 |
시스템에 접속해 있는 사용자 확인 (w, who, users) (0) | 2020.07.15 |