我试图在python 3.6上安装discord.py
我试过了
python3.6 -m pip install discord.py
但它给了我:
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: discord.py in /usr/local/lib/python3.6/site-packages/discord.py-1.0.1-py3.6.egg (1.0.1)
Requirement already satisfied: aiohttp<3.6.0,>=3.3.0 in /usr/local/lib/python3.6/site-packages/aiohttp-3.5.4-py3.6-linux-armv7l.egg (from discord.py) (3.5.4)
Collecting websockets<7.0,>=6.0 (from discord.py)
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/websockets/
#more retries
Could not fetch URL https://pypi.org/simple/websockets/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/websockets/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)) - skipping
Could not fetch URL https://www.piwheels.org/simple/websockets/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='www.piwheels.org', port=443): Max retries exceeded with url: /simple/websockets/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)) - skipping
Could not find a version that satisfies the requirement websockets<7.0,>=6.0 (from discord.py) (from versions: )
No matching distribution found for websockets<7.0,>=6.0 (from discord.py)
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
Could not fetch URL https://www.piwheels.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='www.piwheels.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
引起我注意的一句话是:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
但我不知道这意味着什么
以下链接中的最后一个答案可能有一些用处:
此外,如果安装了anaconda,请尝试通过Anaconda提示运行pip安装。