반응형
pip 버전을 업그레이드를 진행하려고 했으나, 에러메시지가 뜨면서 버전업이 진행이 되지 않았습니다.
[문제 에러코드]
pip install --upgrade pip
Cache entry deserialization failed, entry ignored
Collecting pip
Downloading https://files.pythonhosted.org/packages/f8/08/7f92782ff571c7c7cb6c5eeb8ebbb1f68cb02bdb24e55c5de4dd9ce98bc3/pip-22.3.tar.gz (2.1MB)
100% |████████████████████████████████| 2.1MB 498kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-yUmEhC/pip/setup.py", line 7
def read(rel_path: str) -> str:
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-yUmEhC/pip/
You are using pip version 8.1.2, however version 22.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
현재 pip 버전
pip -V
pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7)
이 경우, python2.7은 지원하는 pip 버전이 20버전대까지만 지원을 하며, 가장 최신버전이 22버전까지 올리려고 하여, 오류가 발생한 문제였습니다. 호환되는 20버전대로 다시 설치를 진행하면 문제가 해결됩니다.
pip install --upgrade pip==20.3.4
Collecting pip==20.3.4
Downloading https://files.pythonhosted.org/packages/27/79/8a850fe3496446ff0d584327ae44e7500daf6764ca1a382d2d02789accf7/pip-20.3.4-py2.py3-none-any.whl (1.5MB)
100% |████████████████████████████████| 1.5MB 661kB/s
Installing collected packages: pip
Found existing installation: pip 8.1.2
Uninstalling pip-8.1.2:
Successfully uninstalled pip-8.1.2
Successfully installed pip-20.3.4
You are using pip version 20.3.4, however version 22.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
업그레이드 한 pip 버전
pip -V
pip 20.3.4 from /usr/lib/python2.7/site-packages/pip (python 2.7)
[참고글]
반응형
'DEV' 카테고리의 다른 글
RVM - RUBY 버전별 설치 (0) | 2023.01.30 |
---|---|
NVM 설치 (0) | 2022.11.04 |
[Python] does not support timestamps before 1980 (1) | 2022.10.23 |
[Django] django 설치 시 오류 (ModuleNotFoundError: No module named '_sqlite3') (0) | 2022.07.10 |
[PYTHON] pyenv 가상환경 셋팅 (0) | 2022.07.08 |