鱼C论坛

 找回密码
 立即注册
查看: 896|回复: 2

[已解决]pip报错

[复制链接]
发表于 2023-8-11 11:40:28 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
本帖最后由 歌者文明清理员 于 2023-8-11 12:22 编辑

GPT 的问题,先不发求助区

问题描述
Microsoft Windows [版本 10.0.19045.2965]
(c) Microsoft Corporation。保留所有权利。

C:\Users\bruce>pip install webview
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Collecting webview
  Using cached https://mirrors.aliyun.com/pypi/packages/0c/5f/6e84700b7825bcddb12cd3eead8ac787d9d624be9f2c01aa4fb9a88572a9/webview-0.1.5.tar.gz (18 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: webview
  Building wheel for webview (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for webview (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for webview
Failed to build webview
ERROR: Could not build wheels for webview, which is required to install pyproject.toml-based projects

C:\Users\bruce>

用过的方法:

PyPI 地址:https://pypi.org/project/webview/

参考:https://fishc.com.cn/thread-225497-1-1.html

Snipaste_2023-08-11_11-36-14.png

没有 Built Distributions 选项;

Snipaste_2023-08-11_11-38-03.png

每一个版本 description 都是空的

另外:
C:\Users\bruce>pip install webview --only-binary webview
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
ERROR: Could not find a version that satisfies the requirement webview (from versions: none)
ERROR: No matching distribution found for webview

C:\Users\bruce>pip install webview --only-binary :all:
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
ERROR: Could not find a version that satisfies the requirement webview (from versions: none)
ERROR: No matching distribution found for webview

C:\Users\bruce>
最佳答案
2023-8-11 12:21:01
description 跟 Distribution 可不是一个东西

还有他不一定会有编译好的构建包,也不一定会有源码包,这很正常

既然没有编译好的构建包,那你就只有自己捣鼓编译环境这条路可走了

不过恕我直言,去用一个五年没有人维护的包真的有意义吗?除非你自己会改代码,特别是这种涉及到其他语言的包,他那时候的C语言环境说不定已经落后了,你得自己去重构代码
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2023-8-11 12:21:01 | 显示全部楼层    本楼为最佳答案   
description 跟 Distribution 可不是一个东西

还有他不一定会有编译好的构建包,也不一定会有源码包,这很正常

既然没有编译好的构建包,那你就只有自己捣鼓编译环境这条路可走了

不过恕我直言,去用一个五年没有人维护的包真的有意义吗?除非你自己会改代码,特别是这种涉及到其他语言的包,他那时候的C语言环境说不定已经落后了,你得自己去重构代码
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-8-11 12:27:44 | 显示全部楼层
本帖最后由 isdkz 于 2023-8-11 13:16 编辑

而且我怀疑,你是不是搞错库名了?库名不一定就是包名

这种连说明都没有的库,应该没什么人用才对
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-9-21 21:50

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表