Reputation: 171
I'm trying to install Odoo 15.0 on mac (python 3.7) when i come to run the command:
pip3 install -r requirements.txt
I got this error message:
Traceback (most recent call last):
File "/usr/local/opt/[email protected]/bin/pip3", line 10, in <module>
from importlib.metadata import distribution
ModuleNotFoundError: No module named 'importlib.metadata'
Upvotes: 13
Views: 60795
Reputation: 6763
Note that while the accepted answer was relevant for the specific version of Python used in the question (3.7 or older), and asked at the moment of asking, now it has become obsolete, because Python 3.7 has since reached its end-of-life.
Since Python 3.8 the importib-metadata
third-party library has been merged into CPython and became its importlib.metadata
module, so it is now possible to use it like this:
from importlib.metadata import distribution,metadata,version
Upvotes: 11
Reputation: 428
Try installing this lib manually, using :
pip install importlib-metadata
or
pip3 install importlib-metadata
Upvotes: 20