首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >pip3安装delta-lake-reader[aws]在MacOS Mojave上失败

pip3安装delta-lake-reader[aws]在MacOS Mojave上失败
EN

Stack Overflow用户
提问于 2021-04-10 03:37:56
回答 1查看 261关注 0票数 2

我试图安装delta-lake-reader[aws]在我的MacBook Pro与MacOS莫哈韦,它是失败的。我的笔记本电脑上安装了Python3.9.1。

代码语言:javascript
复制
$ pip3 install delta-lake-reader[aws]


Collecting delta-lake-reader[aws]
  Using cached delta_lake_reader-0.2.2-py3-none-any.whl (7.4 kB)
Collecting pyarrow<3.0.0,>=2.0.0
  Using cached pyarrow-2.0.0.tar.gz (58.9 MB)
  Installing build dependencies ... |

在此之后,它挂起一段时间,然后出现大量错误,最后,它在结束之前给出以下输出:

代码语言:javascript
复制
ERROR: Cannot install delta-lake-reader[aws]==0.1.0, delta-lake-reader[aws]==0.1.1, delta-lake-reader[aws]==0.2.1 and delta-lake-reader[aws]==0.2.2 because these package versions have conflicting dependencies.

The conflict is caused by:
    delta-lake-reader[aws] 0.2.2 depends on pyarrow<3.0.0 and >=2.0.0
    delta-lake-reader[aws] 0.2.1 depends on pyarrow<3.0.0 and >=2.0.0
    delta-lake-reader[aws] 0.1.1 depends on pyarrow<3.0.0 and >=2.0.0
    delta-lake-reader[aws] 0.1.0 depends on pyarrow<3.0.0 and >=2.0.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
$

我试着卸载pyarrow,但它再次安装3.0.0,并以同样的方式失败。

我怎样才能克服这一切?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-04-10 09:38:06

问题在于显式依赖,它不包括py箭头3.0.0,但需要2.x.x版本。而且py箭头2.x.x与Python3.9不兼容,这就是为什么您的构建失败的原因,但是它与Python3.8一起工作,我可以用pip3.8 install 'delta-lake-reader[aws]==0.2.2'安装它。所以你有以下选择:

  • 使用Python3.8
  • 下载存储库,并在pyproject.toml中进行更改以使用py箭头3.0.0,然后使用诗歌工具构建轮子
  • 项目中的文件问题,等待作者修复。
  • 如果您不需要额外的功能,那么您可以使用可以安装在三角湖巨蟒包件命令中的正式pip install deltalake
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67030572

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档