python - “成熟构建”在 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 上我有:
- 设置 Python 环境
- 安装 pip 包 maturin
- Rust 版本是 rustc 1.47.0-nightly
- 目标是 nightly-x86_64-pc-windows-msvc
什么会导致 maturin 失败并显示上述错误消息?
解决方案
推荐阅读
- java - 文件未正确保存
- python - 将列添加到更高维度
- sql-server - 在 SQL Management Studio 中为没有所有者权限的特定用户隐藏所有数据库,但只有一个数据库
- sql - SQL - Max Case 什么时候不拉最大值?
- iis - 将 parameters.xml 或 setParams.xml 替换为 Azure DevOps Release Pipeline 变量
- c# - Unity 中的一个简单的开始按钮
- react-native - 设计功能 React Native
- java - 用值实例化接口类型变量
- python - java.lang.NoSuchMethodError: org.apache.spark.internal.Logging.$init$
- javascript - 根据日期对对象数组进行排序