우분투 서버 16.04를 업그레이드 한 후, python3.6에 pip3 모듈을 설치할 수 없습니다. 이것은 내가 python3에 대한 tensorflow-GPU를 설치하려고 할 때 내가 무엇을 얻을 수 있습니다 :pip3은 ssl에 대한 어떤 이유로 인하여 설치할 수 없습니다
[email protected]:~# pip3 install tensorflow-gpu
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting tensorflow-gpu
Could not fetch URL https://pypi.python.org/simple/tensorflow-gpu/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
Could not find a version that satisfies the requirement tensorflow-gpu (from versions:)
No matching distribution found for tensorflow-gpu
이 내 python3 및 pip3 버전 :
[email protected]:~# python3 -V
Python 3.6.1
[email protected]:~# which python3
/usr/local/bin/python3
[email protected]:~# pip3 -V
pip 9.0.1 from /usr/local/lib/python3.6/site-packages (python 3.6)
I에는 OpenSSL 내 서버에 설치되어 있는지 확신합니다 :
[email protected]:~# apt -y install openssl libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl-dev is already the newest version (1.0.2g-1ubuntu13).
openssl is already the newest version (1.0.2g-1ubuntu13).
문제의 원인은 내 pip3의 버전이 openssl 버전과 일치하지 않을 수 있다고 생각합니다. 어떻게해야합니까? 모든 제안을 부탁드립니다! 고맙습니다!
[pip가 SSL 인증서를 확인할 수 없음 : SSL 모듈을 사용할 수 없음] 가능한 복제본 (https://stackoverflow.com/questions/44290926/pip-cannot-confirm-ssl-certificate-ssl-module-is-not- 사용 가능) – phd
페이지에서 모든 솔루션을 시도했지만 도움이되지 않습니다. – mlpy
SSL 라이브러리를 설치 한 후 파이썬을 다시 설치해야합니다. 파이썬의 ssl 모듈은 라이브러리의 존재 여부에 따라 설치되거나 설치되지 않을 것이기 때문입니다. 파이썬의 ssl 모듈을'python -c "import ssl"'으로 검증하십시오. – phd