首页 > 解决方案 > “成熟构建”在 Windows 上失败

问题描述

当我maturin build在 Windows 上运行时,我收到以下错误消息:

 Found pyo3 bindings
 Found CPython 3.8 at C:\Python\_envs\Python38\python.exe, CPython 3.7 at C:\Python\_envs\Python37\python.exe
 maturin failed
  Caused by: Failed to build source distribution
  Caused by: Failed to add file from Cargo.toml.orig to sdist as Cargo.toml.orig
  Caused by: Das System kann die angegebene Datei nicht finden. (os error 2) when getting metadata for Cargo.toml.orig

在 Linux 上,该命令成功。在 Windows 上我有:

什么会导致 maturin 失败并显示上述错误消息?

标签: pythonrust

解决方案


推荐阅读