после переустановки Window начал устанавливать Python, Anaconda и PyCharm, попытался установить библиотеку прям из PyCharm, выкинуло с ошибкой:
Collecting aiohttp==3.5.0
Could not fetch URL https://pypi.org/simple/aiohttp/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/aiohttp/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
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
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
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/aiohttp/
Retrying (Retry(total=3, 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/aiohttp/
Retrying (Retry(total=2, 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/aiohttp/
Retrying (Retry(total=1, 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/aiohttp/
Retrying (Retry(total=0, 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/aiohttp/
Could not find a version that satisfies the requirement aiohttp==3.5.0 (from versions: )
No matching distribution found for aiohttp==3.5.0
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Решил проблему, когда использовал ту же команду и в cmd pip install aiohttp==3.5.0
Запустил скрипт и он мне начал выдавать:
SSL is not supported.
Но я не использую прокси. Вот метод запроса:
async def request(client, url):
print(7)
global limit, headers
while True:
async with limit:
try:
async with client.get(url, headers=headers) as r:
log.info('Запрос: %s', url)
if(r.status == 200):
temp = []
temp.append(await r.text())
temp.append(url)
return temp
else:
log.info("Ошибка статус:", r.status)
time.sleep(0.01)
except Exception as e:
print(e)
time.sleep(0.01)
В чем проблема, может эти проблемы как-то связаны? Запустил скрипт из под CMD, решив что это проблема PyCharm, но нет, ошибка осталась.
Python версии 3.7