为了能快速了解并处理您的问题,请提供以下基础信息:
问题描述:用管理器安装python会缺少 ssl模块,导致无法使用pip安装依赖.CentOS 7 and RHEL 7 ship an unsupported OpenSSL version. CentOS 7's EPEL repository comes with openssl11 package. The package install files in non-standard locations and uses a custom pkgconf module name openssl11. You can patch Python's configure script to use the custom build:
相关截图(日志、错误): WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after conne ction broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/async-timeout/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after conne ction broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/async-timeout/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after conne ction broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/async-timeout/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after conne ction broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/async-timeout/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after conne ction broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/async-timeout/ Could not fetch URL https://pypi.org/simple/async-timeout/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple /async-timeout/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping ERROR: Could not find a version that satisfies the requirement async-timeout==4.0.2 (from versions: none) ERROR: No matching distribution found for async-timeout==4.0.2 WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
|
|