๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ’ปTech/๐Ÿpython

[SOLVED] Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-on0urr/pip/

by _viper_ 2022. 4. 12.
๋ฐ˜์‘ํ˜•

 


๐Ÿšซ 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