我正在尝试在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.
但是我不知道这意味着什么
答案 0 :(得分:0)
以下链接中的最后一个答案可能有一定用途:
此外,如果已安装anaconda,请尝试通过Anaconda提示符运行pip安装。