Pipenv.exceptions.ResolutionFailure; ERROR: Отключение обработки PEP 517 недействительно

Я столкнулся с тем, что кажется конфликтом зависимостей при попытке запустить pipenv lock, но не могу понять, что вызывает это:

[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  You can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: Disabling PEP 517 processing is invalid: project specifies a build backend of setuptools.build_meta:__legacy__ in pyproject.toml

Я попытался отладить, используя предложенные pipenv install --skip-lock и pipenv graph, и не смог обнаружить никаких конфликтов в приведенном ниже выводе:

Это мой Pipfile:

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
asgiref = "==3.4.1"
attrs = "==21.2.0"
blessings = "==1.7"
bpython = "==0.21"
certifi = "==2021.5.30"
chardet = "==4.0.0"
charset-normalizer = "==2.0.4"
click = "==8.0.1"
coverage = "==5.5"
curtsies = "==0.3.5"
cwcwidth = "==0.1.4"
django-environ = "==0.6.0"
django-extensions = "==3.1.3"
django-filter = "==2.4.0"
django-nose = "==1.4.7"
djangorestframework = "==3.12.4"
dnspython = "==1.16.0"
eventlet = "==0.31.1"
factory-boy = "==3.2.0"
gevent = "*"
geventhttpclient = "==1.5.1"
greenlet = "==1.1.1"
gunicorn = "==20.1.0"
idna = "==3.2"
isodate = "==0.6.0"
itsdangerous = "==2.0.1"
jsonschema = "==3.2.0"
locust = "==2.2.1"
msgpack = "==1.0.2"
nose = "==1.3.7"
openapi-schema-validator = "==0.1.5"
openapi-spec-validator = "==0.3.1"
parameterized = "==0.8.1"
prance = "==0.21.8.0"
psutil = "==5.8.0"
psycopg2 = "==2.9.1"
pyrsistent = "==0.18.0"
python-dateutil = "==2.8.2"
pytz = "==2021.1"
pyxdg = "==0.27"
pyzmq = "==22.2.1"
requests = "==2.26.0"
roundrobin = "==0.0.2"
"ruamel.yaml" = "==0.17.16"
"ruamel.yaml.clib" = "==0.2.6"
semver = "==2.13.0"
six = "==1.16.0"
sqlparse = "==0.4.2"
text-unidecode = "==1.3"
urllib3 = "==1.26.6"
"zope.event" = "==4.5.0"
"zope.interface" = "==5.4.0"
Brotli = "==1.0.9"
ConfigArgParse = "==1.5.2"
Django = "==3.2.7"
Faker = "==8.12.1"
Flask = "==2.0.1"
Flask-BasicAuth = "==0.2.0"
Flask-Cors = "==3.0.10"
Jinja2 = "==3.0.1"
MarkupSafe = "==2.0.1"
Pygments = "==2.10.0"
PyYAML = "==5.4.1"
Werkzeug = "==2.0.1"
pylint = "*"
pylint-fail-under = "*"
bleach = "*"

[dev-packages]

[requires]
python_version = "3.7"

и вывод pip3 freeze:

asgiref==3.4.1
astroid==2.8.5
attrs==21.2.0
bleach==4.1.0
blessings==1.7
bpython==0.21
Brotli==1.0.9
certifi==2021.5.30
chardet==4.0.0
charset-normalizer==2.0.4
click==8.0.1
ConfigArgParse==1.5.2
coverage==5.5
curtsies==0.3.5
cwcwidth==0.1.4
Django==3.2.7
django-environ==0.6.0
django-extensions==3.1.3
django-filter==2.4.0
django-nose==1.4.7
djangorestframework==3.12.4
dnspython==1.16.0
eventlet==0.31.1
factory-boy==3.2.0
Faker==8.12.1
Flask==2.0.1
Flask-BasicAuth==0.2.0
Flask-Cors==3.0.10
gevent==21.8.0
geventhttpclient==1.5.1
greenlet==1.1.1
gunicorn==20.1.0
idna==3.2
importlib-metadata==4.8.2
isodate==0.6.0
isort==5.10.1
itsdangerous==2.0.1
Jinja2==3.0.1
jsonschema==3.2.0
lazy-object-proxy==1.6.0
locust==2.2.1
MarkupSafe==2.0.1
mccabe==0.6.1
msgpack==1.0.2
nose==1.3.7
openapi-schema-validator==0.1.5
openapi-spec-validator==0.3.1
packaging==21.3
parameterized==0.8.1
platformdirs==2.4.0
prance==0.21.8.0
psutil==5.8.0
psycopg2==2.9.1
Pygments==2.10.0
pylint==2.11.1
pylint-fail-under==0.3.0
pyparsing==3.0.6
pyrsistent==0.18.0
python-dateutil==2.8.2
pytz==2021.1
pyxdg==0.27
PyYAML==5.4.1
pyzmq==22.2.1
requests==2.26.0
roundrobin==0.0.2
ruamel.yaml==0.17.16
ruamel.yaml.clib==0.2.6
semver==2.13.0
six==1.16.0
sqlparse==0.4.2
text-unidecode==1.3
toml==0.10.2
typed-ast==1.5.0
typing_extensions==4.0.0
urllib3==1.26.6
webencodings==0.5.1
Werkzeug==2.0.1
wrapt==1.13.3
zipp==3.6.0
zope.event==4.5.0
zope.interface==5.4.0

как я могу разрешить вышеуказанный конфликт?

Не уверен, что это лучшее решение проблемы, но у меня сработало следующее: (запускается после выхода из virtenv)

pipenv --rm
pipenv shell
pipenv install --skip-lock --verbose (ran verbose to check for anything fishy)
pipenv lock --pre
Вернуться на верх