gpt4 book ai didi

python - 如何修复 ImportError : no module named pep425tags

转载 作者:行者123 更新时间:2023-12-04 19:24:16 35 4
gpt4 key购买 nike

我一直在尝试在 Ubuntu 20.04 中安装一个名为 PsrPopPy ( https://github.com/samb8s/PsrPopPy ) 的 python 包,但显然该包中缺少某个模块。见下文:

juliejt@tulasi:~$ cd PsrPopPy
juliejt@tulasi:~/PsrPopPy$ python setup.py install
scons: Reading SConscript files ...
ImportError: No module named pep425tags:
File "/home/juliejt/PsrPopPy/SConstruct", line 19:
import wheel.pep425tags
juliejt@tulasi:~/PsrPopPy$ pip install pep425tags
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement pep425tags (from versions: none)
ERROR: No matching distribution found for pep425tags
juliejt@tulasi:~/PsrPopPy$ pip install wheel.pep425tags
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement wheel.pep425tags (from versions: none)
ERROR: No matching distribution found for wheel.pep425tags
我不确定如何安装丢失的 wheel.pep425tags 文件,或者是否有其他方法可以解决此问题。

最佳答案

在这种特殊情况下,您可以在 SConstruct 脚本中切换:

import wheel.pep425tags
full_tag = '-'.join(next(tag for tag in wheel.pep425tags.get_supported() if not 'manylinux' in tag))

import enscons
full_tag = enscons.get_binary_tag()
(参见,例如, this file)。

关于python - 如何修复 ImportError : no module named pep425tags,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72555751/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com