如何修复ImportError:没有名为pep425tags的模块



我一直试图在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

我不知道如何安装丢失的轮子。如果有其他方法来解决这个问题

在这种特殊情况下,在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()

(参见,例如,这个文件)

相关内容

  • 没有找到相关文章

最新更新