gpt4 book ai didi

python - pipenv:如何解决依赖冲突

转载 作者:行者123 更新时间:2023-12-01 05:53:35 25 4
gpt4 key购买 nike

我有这个依赖问题:

Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
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.
Could not find a version that matches futures<4.0.0,>=2.2.0,>=3.2.0; python_version < "3.2"
Tried: 0.2.python3, 0.1, 0.2, 1.0, 2.0, 2.1, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.5, 2.1.6, 2.1.6, 2.2.0, 2.2.0, 3.0.0, 3.0.0, 3.0.1, 3.0.1, 3.0.2, 3.0.2, 3.0.3, 3.0.3, 3.0.4, 3.0.4, 3.0.5, 3.0.5, 3.1.0, 3.1.0, 3.1.1, 3.1.1
显然有问题。唯一版本的包 futures无法解决冲突(=“3.2.0”)。
编辑:
我更新了上面的消息。现在python版本也出现了冲突。
我有什么选择?我想继续使用 pipenv 和 Pipfile.lock
编辑
这是pipenv生成的图。我花了一段时间才发现它不适用于安装在 virtualenv 中的 pip v10。但现在它来了。
pipenv graph

apiai==1.2.3
- numpy [required: Any, installed: 1.14.3]
beautifulsoup4==4.6.0
boto3==1.7.15
- botocore [required: >=1.10.15,<1.11.0, installed: 1.10.15]
- docutils [required: >=0.10, installed: 0.14]
- jmespath [required: >=0.7.1,<1.0.0, installed: 0.9.3]
- python-dateutil [required: >=2.1,<3.0.0, installed: 2.7.2]
- six [required: >=1.5, installed: 1.11.0]
- jmespath [required: >=0.7.1,<1.0.0, installed: 0.9.3]
- s3transfer [required: >=0.1.10,<0.2.0, installed: 0.1.13]
- botocore [required: <2.0.0,>=1.3.0, installed: 1.10.15]
- docutils [required: >=0.10, installed: 0.14]
- jmespath [required: >=0.7.1,<1.0.0, installed: 0.9.3]
- python-dateutil [required: >=2.1,<3.0.0, installed: 2.7.2]
- six [required: >=1.5, installed: 1.11.0]
celery==4.1.0
- billiard [required: >=3.5.0.2,<3.6.0, installed: 3.5.0.3]
- kombu [required: >=4.0.2,<5.0, installed: 4.1.0]
- amqp [required: <3.0,>=2.1.4, installed: 2.2.2]
- vine [required: >=1.1.3, installed: 1.1.4]
- pytz [required: >dev, installed: 2018.4]
dialogflow==0.5.1
- google-api-core [required: >=0.1.4,<2.0.0dev, installed: 1.2.1]
- google-auth [required: <2.0.0dev,>=0.4.0, installed: 1.5.0]
- cachetools [required: >=2.0.0, installed: 2.1.0]
- pyasn1-modules [required: >=0.2.1, installed: 0.2.2]
- pyasn1 [required: <0.5.0,>=0.4.1, installed: 0.4.2]
- rsa [required: >=3.1.4, installed: 3.4.2]
- pyasn1 [required: >=0.1.3, installed: 0.4.2]
- six [required: >=1.9.0, installed: 1.11.0]
- googleapis-common-protos [required: <2.0dev,>=1.5.3, installed: 1.5.3]
- protobuf [required: >=3.0.0, installed: 3.6.0]
- setuptools [required: Any, installed: 40.0.0]
- six [required: >=1.9, installed: 1.11.0]
- protobuf [required: >=3.0.0, installed: 3.6.0]
- setuptools [required: Any, installed: 40.0.0]
- six [required: >=1.9, installed: 1.11.0]
- pytz [required: Any, installed: 2018.4]
- requests [required: <3.0.0dev,>=2.18.0, installed: 2.18.4]
- certifi [required: >=2017.4.17, installed: 2018.4.16]
- chardet [required: <3.1.0,>=3.0.2, installed: 3.0.4]
- idna [required: <2.7,>=2.5, installed: 2.6]
- urllib3 [required: <1.23,>=1.21.1, installed: 1.22]
- setuptools [required: >=34.0.0, installed: 40.0.0]
- six [required: >=1.10.0, installed: 1.11.0]
- googleapis-common-protos [required: <2.0dev,>=1.5.2, installed: 1.5.3]
- protobuf [required: >=3.0.0, installed: 3.6.0]
- setuptools [required: Any, installed: 40.0.0]
- six [required: >=1.9, installed: 1.11.0]
enum-compat==0.0.2
enum34==1.1.6
eventlet==0.23.0
- greenlet [required: >=0.3, installed: 0.4.13]
Flask-Script==2.0.6
- Flask [required: Any, installed: 1.0.2]
- click [required: >=5.1, installed: 6.7]
- itsdangerous [required: >=0.24, installed: 0.24]
- Jinja2 [required: >=2.10, installed: 2.10]
- MarkupSafe [required: >=0.23, installed: 1.0]
- Werkzeug [required: >=0.14, installed: 0.14.1]
Flask-Scss==0.5
- Flask [required: Any, installed: 1.0.2]
- click [required: >=5.1, installed: 6.7]
- itsdangerous [required: >=0.24, installed: 0.24]
- Jinja2 [required: >=2.10, installed: 2.10]
- MarkupSafe [required: >=0.23, installed: 1.0]
- Werkzeug [required: >=0.14, installed: 0.14.1]
- pyScss [required: Any, installed: 1.3.5]
- six [required: Any, installed: 1.11.0]
Flask-SocketIO==3.0.0
- Flask [required: >=0.9, installed: 1.0.2]
- click [required: >=5.1, installed: 6.7]
- itsdangerous [required: >=0.24, installed: 0.24]
- Jinja2 [required: >=2.10, installed: 2.10]
- MarkupSafe [required: >=0.23, installed: 1.0]
- Werkzeug [required: >=0.14, installed: 0.14.1]
- python-socketio [required: >=1.6.1, installed: 1.9.0]
- python-engineio [required: >=1.2.1, installed: 2.1.0]
- six [required: >=1.9.0, installed: 1.11.0]
- six [required: >=1.9.0, installed: 1.11.0]
Flask-SQLAlchemy==2.3.2
- Flask [required: >=0.10, installed: 1.0.2]
- click [required: >=5.1, installed: 6.7]
- itsdangerous [required: >=0.24, installed: 0.24]
- Jinja2 [required: >=2.10, installed: 2.10]
- MarkupSafe [required: >=0.23, installed: 1.0]
- Werkzeug [required: >=0.14, installed: 0.14.1]
- SQLAlchemy [required: >=0.8.0, installed: 1.2.7]
grpcio==1.13.0
- six [required: >=1.5.2, installed: 1.11.0]
gunicorn==19.8.1
ipaddress==1.0.22
pprint==0.1
prismic==1.5.0
- ndg-httpsclient [required: Any, installed: 0.5.0]
- pyasn1 [required: >=0.1.1, installed: 0.4.2]
- PyOpenSSL [required: Any, installed: 17.5.0]
- cryptography [required: >=2.1.4, installed: 2.2.2]
- asn1crypto [required: >=0.21.0, installed: 0.24.0]
- cffi [required: >=1.7, installed: 1.11.5]
- pycparser [required: Any, installed: 2.18]
- idna [required: >=2.1, installed: 2.6]
- six [required: >=1.4.1, installed: 1.11.0]
- six [required: >=1.5.2, installed: 1.11.0]
- pyasn1 [required: Any, installed: 0.4.2]
- pyOpenSSL [required: Any, installed: 17.5.0]
- cryptography [required: >=2.1.4, installed: 2.2.2]
- asn1crypto [required: >=0.21.0, installed: 0.24.0]
- cffi [required: >=1.7, installed: 1.11.5]
- pycparser [required: Any, installed: 2.18]
- idna [required: >=2.1, installed: 2.6]
- six [required: >=1.4.1, installed: 1.11.0]
- six [required: >=1.5.2, installed: 1.11.0]
- requests [required: >=2.7, installed: 2.18.4]
- certifi [required: >=2017.4.17, installed: 2018.4.16]
- chardet [required: <3.1.0,>=3.0.2, installed: 3.0.4]
- idna [required: <2.7,>=2.5, installed: 2.6]
- urllib3 [required: <1.23,>=1.21.1, installed: 1.22]
psycopg2==2.7.4
pubnub==4.0.13
- pycryptodomex [required: >=3.3, installed: 3.6.1]
- requests [required: >=2.4, installed: 2.18.4]
- certifi [required: >=2017.4.17, installed: 2018.4.16]
- chardet [required: <3.1.0,>=3.0.2, installed: 3.0.4]
- idna [required: <2.7,>=2.5, installed: 2.6]
- urllib3 [required: <1.23,>=1.21.1, installed: 1.22]
- six [required: >=1.10, installed: 1.11.0]
redis==2.10.6
simplejson==3.14.0
webassets==0.12.1

最佳答案

关于这个话题有很长的对话 here
对于某些人 pipenv lock --clear解决了问题,对我来说,将 pylint 和 mypy(导致冲突)锁定到最新版本,解决了问题。

关于python - pipenv:如何解决依赖冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51512519/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com