не удалось установить пакеты в pycharm, а также из-за ошибки командной строки «не удалось найти версию» - PullRequest
0 голосов
/ 01 октября 2019

Я не могу установить пакеты с Pycharm professional 2019 (Windowns 10, 64bits).

Всегда выдает одну и ту же ошибку « Ненулевой код выхода (1) Не удалось найтиверсия, которая удовлетворяет требованиям требований (из версии:) Не найдено соответствующего распределения для запросов . И также сказано проверить версию pip , установленную для Python. Моя pip версия "pip 19.0.3" с Python-3.7.4

Ниже на скриншоте показана ошибка, которая происходит в Pycharm [Ошибка в pycharm] [1]. Использование [командной строки приводит к почти такой же ошибке] [2]

Я также пытался изменить репозиторий на https://pypi.python.org/pypi, но это тоже не помогло.

Я пытаюсьэто. но все еще получаю ошибку

C:\>pip --proxy=http://pypi.python.org/simple/ --trusted-host pypi.python.org install requests
Collecting requests
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000022BB22A0D88>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed'))': /simple/requests/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000022BB22C1988>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed'))': /simple/requests/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000022BB22C1888>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed'))': /simple/requests/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000022BB22CBA08>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed'))': /simple/requests/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000022BB22C1DC8>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed'))': /simple/requests/
  Could not find a version that satisfies the requirement requests (from versions: )
No matching distribution found for requests 

А также это также

C:\>pip install requests
Collecting requests
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000025AD172C248>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/requests/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000025AD1728D08>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/requests/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000025AD1728C08>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/requests/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000025AD1728CC8>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/requests/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000025AD17106C8>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/requests/
  Could not find a version that satisfies the requirement requests (from versions: )
No matching distribution found for requests
``````````````````````````



  [1]: https://i.stack.imgur.com/TcgjN.png
  [2]: https://i.stack.imgur.com/haNxX.png
...