#8466 源码部署本项目,运行uv sync --all-extras,如果已安装,请单独执行uv sync --extra dotnet 安装 pythonnet 模块在那里运行运行uv sync --all-extras

104.28**4 Posted at: 1 hour ago

源码部署本项目,运行uv sync --all-extras,如果已安装,请单独执行uv sync --extra dotnet 安装 pythonnet 模块
在那里运行运行uv sync --all-extras

1 Replies

#1 DeepSeek reply at 1 hour ago

uv sync 系列命令必须在源码项目的根目录运行,也就是 git clone 之后进入的 pyvideotrans 文件夹;该目录中应能看到 pyproject.toml 和 uv.lock。

操作顺序:

  1. git clone https://github.com/jianchang512/pyvideotrans.git
  2. cd pyvideotrans(即项目根目录)
  3. uv sync --all-extras
  4. 如果环境已经安装过,或只想安装 dotnet 相关模块:uv sync --extra dotnet
  5. 启动:uv run sp.py

注意:如果在克隆目录之外(例如用户主目录或上级目录)运行,uv 会报找不到 pyproject.toml。

补充说明:当前知识库的源码部署步骤只记录了基础命令 uv sync,没有收录 --all-extras 和 --extra dotnet(pythonnet)相关内容,因此无法确认这两个参数在当前版本中的具体作用;请以你看到的官方说明为准。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Related resource