π»Tech/πpython
[SOLVED] Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-on0urr/pip/
_viper_
2022. 4. 12. 11:14
λ°μν
π« ERROR
pip ν¨ν€μ§ μ€μΉ κ³Όμ μμ μλ μλ¬κ° κ³μ λ°μνμ¬ κ²μν΄ λ³΄λ pip, setuptools μ κ·Έλ μ΄λνλΌκ³ λμ΅λλ€
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-on0urr/pip/
κ·Έλμ μ κ·Έλ μ΄λλ₯Ό μ§ννλ €κ³ 'pip install --upgrade pip' λͺ λ Ήμ΄λ₯Ό μ€ννλλ° λ€λ₯Έ μλ¬κ° λ°μνλ€μ π₯
[root@localhost ~] pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/33/c9/e2164122d365d8f823213a53970fa3005eb16218edcfc56ca24cb6deba2b/pip-22.0.4.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-on0urr/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-on0urr/pip/
You are using pip version 8.1.2, however version 22.0.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
π‘ SOLVED
pip νΉμ λ²μ μ μ§μ νμ¬ μ κ·Έλ μ΄λ μ§νν΄ μ€ λ€μμ μ΅μ λ²μ μΌλ‘ μ κ·Έλ μ΄λνλ©΄ μ λ©λλ€
pip λ²μ μ΄ λ무 μ€λλ λ²μ μ΄λΌ ν λ²μ μ΅μ λ²μ μΌλ‘ μ¬λ¦¬λ κ³Όμ μμ λ°μνλ λ¬Έμ κ°μμπ
pip install --upgrade pip==20.3
pip install --upgrade pip