pip install tqsdk2
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x03DDD5C8>, ‘Connection to pypi.org timed out. (connect timeout=15)’)’: /simple/tqsdk2/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x03DDD7A8>, ‘Connection to pypi.org timed out. (connect timeout=15)’)’: /simple/tqsdk2/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x03DDD7D8>, ‘Connection to pypi.org timed out. (connect timeout=15)’)’: /simple/tqsdk2/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x03DDD628>, ‘Connection to pypi.org timed out. (connect timeout=15)’)’: /simple/tqsdk2/
这是因为你用国内源下载超时,可以指定为阿里源试一下
pip install tqsdk2 -i http://mirrors.aliyun.com/pypi/simple/ –trusted-host=mirrors.aliyun.com