首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >无法在python中安装office365包

无法在python中安装office365包
EN

Stack Overflow用户
提问于 2022-10-25 05:34:57
回答 1查看 30关注 0票数 0

我正在尝试使用以下命令安装Office365包

代码语言:javascript
运行
复制
pip install Office365-REST-Python-Client

但是我得到了以下错误

代码语言:javascript
运行
复制
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,根据皮皮,这个包支持这个版本。有人能帮我解决这个问题吗?提前感谢!

EN

回答 1

Stack Overflow用户

发布于 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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74189483

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档