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

使用Poetry安装deptry后出现Command not found的问题求助

Poetry安装deptry后出现Command not found的问题求助

大家好,我最近碰到一个棘手的问题,想请教下各位大佬:

我当前的环境是Linux系统,Python版本为3.12.3。项目的pyproject.toml里已经配置了deptry依赖,内容如下:

[tool.poetry.dependencies]
deptry = "^0.18.0"

执行poetry install的时候,终端输出了这样的提示:

The following packages are already present in the pyproject.toml and will be skipped:

  • deptry

整个安装过程没有报错,看起来是正常完成的。但之后不管我直接在终端输入deptry命令,还是用poetry run deptry来调用,都提示找不到这个命令,显示“command not found”。

有没有朋友遇到过类似的情况?能不能给我一些排查的方向或者解决思路呀?

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.04.14 10:50:28