You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Poetry添加包时出现“HTTPResponse.__init__() got an unexpected keyword argument 'strict'”错误的解决方法求助

Poetry添加包时出现“HTTPResponse.init() got an unexpected keyword argument 'strict'”错误的解决方法求助

大家好,我碰到了一个关于Poetry的棘手问题,自己谷歌搜了一圈也没找到对应的解决方案,特意来请教各位:

我的环境情况是这样的:

  • 用Conda创建了基于Python 3.10.9的虚拟环境
  • 通过pip install poetry安装了Poetry工具
  • 最开始用poetry add添加几个包都没问题,但后面再执行poetry add pkg(这里的pkg是我要安装的具体包名)时,突然弹出了报错信息:

HTTPResponse.init() got an unexpected keyword argument 'strict'

我尝试过重新激活虚拟环境、重启终端,甚至重新安装了Poetry,但这个错误依然存在。有没有朋友遇到过类似的问题?或者能给我一些排查和解决的思路,让poetry add命令恢复正常工作?

备注:内容来源于stack exchange,提问作者Pan yeang

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.22 12:43:07