【发布时间】:2020-10-02 00:45:55
【问题描述】:
我使用pipenv 命令在我的 Python 虚拟环境中安装包。
我需要更新版本的pandas。于是我就安装成功了:
pipenv install pandas~=1.0
然后我安装了 Apache Beam:
pipenv install apache-beam[gcp,test]
这安装了 Apache Beam,但给了我一个错误:
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
Alternatively, 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: ERROR: Could not find a version that matches pandas<0.25,>=0.23.4,~=1.0
...
There are incompatible versions in the resolved dependencies.
它把我的pandas 版本降级为0.24.2,它不支持我需要的东西。
我该如何解决这个问题?
谢谢
【问题讨论】:
标签: python python-3.x pandas dependencies pipenv