I was trying to run xattr
on macOS Catalina 10.15.2 and the error occurred:
Traceback (most recent call last):
File "/usr/bin/xattr", line 8, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
So I tried the solution given by @cwc and installed the latest version of setuptools
pip install -U setuptools
Requirement already up-to-date: setuptools in ./opt/anaconda3/envs/general/lib/python3.7/site-packages (45.1.0)
I also installed setuptools
using pip3
pip3 install -U setuptools
Requirement already up-to-date: setuptools in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (45.1.0)
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 this problem?