繁体   English   中英

安装错误 pyQt5: error: metadata-generation-failed

[英]Error installing pyQt5: error: metadata-generation-failed

我试图安装 PyQt5 并收到此错误:

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

我试过使用brew install pyqt并安装 pyqt6 就好了。 怎么了。

好的,我遇到了 python 3.10.4这个问题,在搜索之后我找到了这个问题的两个解决方案,因为这个问题不仅与乌龟有关,而且与其他库有关。

#Note:如果您遇到上述问题并且我在 windows CMD 遇到了这个问题,这些解决方案用于下载任何库。

所以你可以试试这样:

pip install <libraryName>==0.0.1

0.0.1这是库的最后一个版本,因此您应该找到要为此目的安装的库的版本,您可以使用以下命令找到库的版本:

pip show module <name_of_the_library>

另一个可行的解决方案是使用--use-deprecated=backtrack-on-build-failures

例子:

pip install turtle --use-deprecated=backtrack-on-build-failures

希望能帮到你。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM