我正在尝试使用以下命令安装Office365包
pip install Office365-REST-Python-Client
但是我得到了以下错误
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 0x000001931FEF6CD0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/office365-rest-python-client/
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 0x000001931FEF6D90>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/office365-rest-python-client/
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 0x000001931FEFF5E0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/office365-rest-python-client/
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 0x000001931FEFF040>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/office365-rest-python-client/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001931FEFF8B0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/office365-rest-python-client/
ERROR: Could not find a version that satisfies the requirement Office365-REST-Python-Client (from versions: none)
ERROR: No matching distribution found for Office365-REST-Python-Client
我已经检查了我的python版本,它是3.10.8,根据皮皮,这个包支持这个版本。有人能帮我解决这个问题吗?提前感谢!
发布于 2022-10-28 10:22:58
我有python 3.10,并且成功地安装了这个包。似乎你在代理背后,无法联系到pypi。您应该在pip命令中指定代理,如下所示(如果代理的ip是10.10.10.10和端口8080)
pip安装Office365-REST-Python-客户端-代理"http://10.10.10.10:8080“
https://stackoverflow.com/questions/74189483
复制相似问题