You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importing model_utils in a python environment that does not have setuptools installed fails with error:
...
File "REDACTED/venv/lib/python3.9/site-packages/model_utils/__init__.py", line 1, in <module>
from pkg_resources import DistributionNotFound, get_distribution
ModuleNotFoundError: No module named 'pkg_resources'
but setuptools is not listed under install_requires in setup.py.
This can occur when using the pip options --prefix, --root, --target to use different python environments between install/runtime.
Environment
Django Model Utils version: 4.1.1 / HEAD
Django version: 3.2.4
Python version: 3.9
Other libraries used, if any: setuptools absent
Code examples
N/A
The text was updated successfully, but these errors were encountered:
Problem
Importing
model_utils
in a python environment that does not havesetuptools
installed fails with error:but
setuptools
is not listed underinstall_requires
insetup.py
.This can occur when using the pip options
--prefix
,--root
,--target
to use different python environments between install/runtime.Environment
Code examples
N/A
The text was updated successfully, but these errors were encountered: