How to fix ImportError: no module named pep425tags

I have been trying to install a python package called PsrPopPy () in Ubuntu 20.04 but apparently a certain module is missing from the package. See below:

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

I am not sure how to install the missing wheel.pep425tags file or if there is another way to resolve the issue.

3

1 Answer

In this particular case, within the SConstruct script you can switch:

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

to

import enscons
full_tag = enscons.get_binary_tag()

(see, e.g., this file).

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like