Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building wheel for BaiduPCS-Py (PEP 517): finished with status 'error' #17

Closed
ldj46118 opened this issue Mar 6, 2021 · 9 comments
Closed

Comments

@ldj46118
Copy link

ldj46118 commented Mar 6, 2021

安装提示错误
Building wheel for BaiduPCS-Py (PEP 517): started
Building wheel for BaiduPCS-Py (PEP 517): finished with status 'error'
Failed to build BaiduPCS-Py

@PeterDing
Copy link
Owner

请贴出完整的错误输出,上面的信息太少。

@ldj46118
Copy link
Author

已回复邮箱,请帮忙查看!

@ldj46118
Copy link
Author

请看附件

1 similar comment
@ldj46118
Copy link
Author

请看附件

@PeterDing
Copy link
Owner

在 Windows 上,BaiduPCS-Py 依赖 Microsoft C++ Build Tools

在安装 BaiduPCS-Py 前,请先安装 Microsoft C++ Build Tools,再在其中勾选 C++ 生成工具 并安装。完成后即可安装 BaiduPCS-Py。

@OnePerson2020
Copy link

请问Ubuntu也报这样的错要怎么解决呀?
ERROR: Failed building wheel for BaiduPCS-Py
Failed to build BaiduPCS-Py
ERROR: Could not build wheels for BaiduPCS-Py which use PEP 517 and cannot be installed directly

@PeterDing
Copy link
Owner

@OnePerson2020 需要 pip3 install --upgrade pip setuptools wheel

@OnePerson2020
Copy link

OnePerson2020 commented Oct 16, 2021 via email

@nikerck
Copy link

nikerck commented Feb 11, 2023

这个命令试过了,但是报相同的错欸。

------------------ 原始邮件 ------------------ 发件人: "PeterDing/BaiduPCS-Py" @.>; 发送时间: 2021年10月16日(星期六) 上午9:24 @.>; @.@.>; 主题: Re: [PeterDing/BaiduPCS-Py] Building wheel for BaiduPCS-Py (PEP 517): finished with status 'error' (#17) @OnePerson2020 需要 pip3 install --upgrade pip setuptools wheel — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

我在centos8遇到跟你同样问题。

ERROR: Could not build wheels for BaiduPCS-Py which use PEP 517 and cannot be installed directly

我通过以下方式解决

python -m pip install --upgrade pip
python -m pip install --upgrade setuptools

后续我遇到第二个问题

ERROR: Failed building wheel for BaiduPCS-Py
ERROR: Could not build wheels for BaiduPCS-Py, which is required to install pyproject.toml-based projects

我往上寻找发现,因为缺少Python.h

fatal error: Python.h: No such file or directory

通过安装 python-dev 或 python-devel 包解决

dnf install python39-devel  # 我这里用的是python3.9

希望对你有帮助

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants