πŸ’»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