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

使用Poetry配置Typer CLI应用,无法通过starfish命令调用求助

无法通过starfish命令调用Typer CLI应用(Poetry配置问题)

我使用Typer框架开发了Python CLI应用,期望通过starfish命令直接启动程序,而非执行py main.py。此前我曾成功用Poetry打包发布过同类应用,但本次配置后无法正常运行。

以下是我的pyproject.toml配置内容:

[tool.poetry]
name = "starfish"
version = "0.1.0"
description = "A python based File Transfer Protocol(FTP) program."
authors = ["777advait"]
license = "MIT License"
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.9"
rich = "^13.3.4"
questionary = "^1.10.0"
bcrypt = "^4.0.1"
typer = "^0.7.0"
scapy = "^2.5.0"

[tool.poetry.scripts]
starfish="starfish.main:run"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

报错截图如下:
报错截图


内容的提问来源于stack exchange,提问作者777winters

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.24 21:09:58