각종 에러들을 해결 해 보자

Ubuntu | Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-2Op1_8/gpustat/

토오오끼 2024. 1. 8. 13:35
728x90
반응형

필요한 모듈이 있어서 pip install을 사용하여 설치하려고 하니

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-2Op1_8/gpustat/

라는 에러가 발생했다.

 

아주 간단히 해결이 가능하다!

먼저 pip upgrade를 해 준 후에 setuptools까지 upgrade를 해 주면 된다.

pip install --upgrade pip

 

pip upgrade를 하고 나면,

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

이런 에러가 또 발생 할텐데 

이때 setuptools를 upgrade 해 주면 된다.

pip install --upgrade setuptools

 

 

이 두 step을 한번에 하는 방법도 있다.

sudo -H pip install --upgrade --ignore-installed pip setuptools
728x90
반응형