Не удалось получить URL (проблема с Python3.6) - PullRequest
0 голосов
/ 24 апреля 2019

Я пытаюсь установить discord.py на python 3.6

Я пробовал

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.

но я не знаю, что это значит

1 Ответ

0 голосов
/ 25 апреля 2019

Последний ответ в приведенной ниже ссылке может быть полезен:

pip настроен с местоположениями, для которых требуется TLS / SSL, однако модуль ssl в Python недоступен

Кроме того, попробуйте запустить установку pip через приглашение Anaconda, если установлена ​​anaconda.

...