Skip to content
Advertisement

Tag: pkg-resources

xattr: ImportError: No module named pkg_resources

I was trying to run xattr on macOS Catalina 10.15.2 and the error occurred: So I tried the solution given by @cwc and installed the latest version of setuptools I also installed setuptools using pip3 Besides, I tried the methods above in different conda environments with Python 3.6.10 and 3.7.4, but the problem was not solved. Any ideas as to

Parameters of resource_filename in pkg_resource in python

I don’t understand how exactly pkg_resource.resource_filename() work and what are its parameters. I searched a lot on web but their official documentation does not cover it well. Can someone explain it? Answer Here are a few examples. I have wheel 0.24 installed in an old environment: The first argument has to be importable. The second argument should be a relative,

Advertisement