我怎么会遇到这种兼容性不匹配的问题? python-dateutil

时间:2019-10-16 13:23:15

标签: python heroku python-dateutil

我正在开发包括boto 3的Django应用程序; botocore(用于aws s3连接),pandas(我想应该自动包含在django中)和heroku(以及其他) 这是我的问题:  -botocore 1.12.250要求python-dateutil <3.0.0  -熊猫0.24.2具有要求python-dateutil> = 2.5.0  -heroku 0.24.2要求python-dateutil> == 1.5

全部是最新的升级版本。 因为我是初学者,所以我不敢相信没有人会同时使用heroku和boto 3或heroku和pandas-它们是受欢迎的点子! 有人怎么能同时使用heroku点子和pandas或boto?

因此,我无法锁定环境,也无法推送到heroku ...

这是我的要求。txt:

astroid==2.2.5
boto3==1.9.250
botocore==1.12.250
certifi==2019.6.16
chardet==3.0.4
colorama==0.4.1
dj-database-url==0.5.0
Django==2.2.6
django-autoslug==1.9.6
django-ckeditor==5.7.1
django-csvimport==2.12
django-heroku==0.3.1
django-isbn-field==0.5.2
django-js-asset==1.2.2
django-storages==1.7.2
docutils==0.15.2
gunicorn==19.9.0
heroku==0.1.4
html5lib==1.0.1
idna==2.8
isort==4.3.21
jmespath==0.9.4
json-table-schema==0.2.1
lazy-object-proxy==1.4.1
lxml==4.3.4
mccabe==0.6.1
messytables==0.15.2
numpy==1.16.4
pandas==0.24.2
Pillow==6.0.0
pipenv==2018.11.26
psycopg2==2.8.3
pylint==2.3.1
python-dateutil==1.5
python-magic==0.4.15
python-magic-bin==0.4.14
python-stdnum==1.11
pytz==2019.3
requests==2.22.0
s3transfer==0.2.1
six==1.12.0
SQLAlchemy==1.3.5
sqlparse==0.3.0
typed-ast==1.4.0
Unidecode==1.1.1
urllib3==1.25.3
virtualenv==16.6.1
virtualenv-clone==0.5.3
webencodings==0.5.1
wrapt==1.11.2
xlrd==1.2.0

在这种情况下,我将python-dateutil强制为1.5,然后在锁定pipenv时出现此错误:

ERROR: botocore 1.12.250 has requirement python-dateutil<3.0.0,>=2.1; 
python_version >= "2.7", but you'll have python-dateutil 1.5 which is 
incompatible.
ERROR: pandas 0.24.2 has requirement python-dateutil>=2.5.0, but you'll 
have python-dateutil 1.5 which is incompatible.

当我修改为最新版本的python-date-util时,我得到了 锁定pipenv时出现反向错误:

ERROR: heroku 0.1.4 has requirement python-dateutil==1.5 , but you'll 
have python-dateutil 2.8 which is incompatible.
我希望避免与所需和要求的包装不匹配。 感谢您的帮助,我已经坚持了几个小时。

1 个答案:

答案 0 :(得分:0)

heroku 0.1.4已被弃用,如本页顶部所述:

https://github.com/heroku/heroku.py

尝试使用this suggestion社区支持的heroku3软件包,该软件包具有更现代的依赖性。

相关问题