1. 程式人生 > >解決已經安裝requests,卻依然提示No module named 'requests'

解決已經安裝requests,卻依然提示No module named 'requests'

Collecting requests
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connec
tion broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.conne
ction.VerifiedHTTPSConnection object at 0x036C1850>: Failed to establish a new c
onnection: [Errno 11003] getaddrinfo failed',)': /simple/requests/
  Downloading requests-2.18.3-py2.py3-none-any.whl (88kB)
    46% |██████████████▉                 | 40kB 251kB/s eta 0:00:
    57% |██████████████████▌             | 51kB 268kB/s eta 0
    69% |██████████████████████▏         | 61kB 315kB/s e
    80% |█████████████████████████▉      | 71kB 341kB/
    92% |█████████████████████████████▋  | 81kB 38
    100% |████████████████████████████████| 92kB
 359kB/s
Collecting urllib3<1.23,>=1.21.1 (from requests)
  Downloading urllib3-1.22-py2.py3-none-any.whl (132kB)
    38% |████████████▍                   | 51kB 965kB/s eta 0:00:01
    46% |██████████████▉                 | 61kB 1.1MB/s eta 0:00:
    54% |█████████████████▍              | 71kB 1.1MB/s eta 0:
    61% |███████████████████▉            | 81kB 1.0MB/s eta
    69% |██████████████████████▎         | 92kB 1.1MB/s e
    77% |████████████████████████▊       | 102kB 1.1MB/
    85% |███████████████████████████▎    | 112kB 1.0