리눅스/이슈 확인

[ISSUE] pip3 를 통한 install 실패 현상

ㅎㄷㄹㅁㅇ 2022. 8. 30. 14:01
반응형

pip3 install fail

 

증상

"Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-1rro8yl1/cryptography/"

해당 로그 발생과 함께 pip3 인스톨이 진행되지 않는 경우가 있습니다. 

 

[root@master kubespray]# pip3 install -r requirements.txt
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting cryptography==3.4.8 (from -r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/cc/98/8a258ab4787e6f835d350639792527d2eb7946ff9fc0caca9c3f4cf5dcfe/cryptography-3.4.8.tar.gz (546kB)
    100% |████████████████████████████████| 552kB 1.8MB/s 
    Complete output from command python setup.py egg_info:
    
            =============================DEBUG ASSISTANCE==========================
            If you are seeing an error here please try the following to
            successfully install cryptography:
    
            Upgrade to the latest pip and try again. This will fix errors for most
            users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
            =============================DEBUG ASSISTANCE==========================
    
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-1rro8yl1/cryptography/setup.py", line 14, in <module>
        from setuptools_rust import RustExtension
    ModuleNotFoundError: No module named 'setuptools_rust'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-1rro8yl1/cryptography/

 

 

해결방안

아래 명령어를 통해 pip  버전을 최신 버전으로 업그레이드합니다. 

 

# pip install --upgrade pip

 

반응형
TOP