首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误:包需要另一个未安装的Python

错误:包需要另一个未安装的Python
EN

Stack Overflow用户
提问于 2020-12-14 17:49:40
回答 1查看 594关注 0票数 3

我本来打算安装一个python包,但上面写着

代码语言:javascript
复制
(base) E:\codementor\Project>pip install importlib-resources
Collecting importlib-resources
  Downloading https://files.pythonhosted.org/packages/c5/1f/ec86d2a5c48ac6490d4471b297885603cf0e8da89d5ffbf0bce6e57f4d64/importlib_resources-3.3.0-py2.py3-none-any.whl
Requirement already satisfied: zipp>=0.4; python_version < "3.8" in c:\users\administrator\anaconda3\lib\site-packages (from importlib-resources) (0.6.0)
Requirement already satisfied: more-itertools in c:\users\administrator\anaconda3\lib\site-packages (from zipp>=0.4; python_version < "3.8"->importlib-resources) (7.2.0)
ERROR: tensorflow-datasets 4.1.0 requires dill, which is not installed.
ERROR: tensorflow-datasets 4.1.0 requires promise, which is not installed.
ERROR: tensorflow-datasets 4.1.0 requires tensorflow-metadata, which is not installed.
Installing collected packages: importlib-resources
Successfully installed importlib-resources-3.3.0

所以我试着安装另一个软件包(Dill)。

代码语言:javascript
复制
(base) E:\codementor\Project>pip install dill
Collecting dill
  Downloading https://files.pythonhosted.org/packages/52/d6/79f40d230895fa1ce3b6af0d22e0ac79c65175dc069c194b79cc8e05a033/dill-0.3.3-py2.py3-none-any.whl (81kB)
     |████████████████████████████████| 81kB 163kB/s
ERROR: apache-beam 2.25.0 requires crcmod<2.0,>=1.7, which is not installed.
ERROR: apache-beam 2.25.0 requires fastavro<2,>=0.21.4, which is not installed.
ERROR: apache-beam 2.25.0 requires hdfs<3.0.0,>=2.1.0, which is not installed.
ERROR: apache-beam 2.25.0 requires httplib2<0.18.0,>=0.8, which is not installed.
ERROR: apache-beam 2.25.0 requires oauth2client<5,>=2.0.1, which is not installed.
ERROR: apache-beam 2.25.0 requires pyarrow<0.18.0,>=0.15.1, which is not installed.
ERROR: apache-beam 2.25.0 requires pydot<2,>=1.2.0, which is not installed.
ERROR: apache-beam 2.25.0 requires pymongo<4.0.0,>=3.8.0, which is not installed.
ERROR: tensorflow-datasets 4.1.0 requires promise, which is not installed.
ERROR: tensorflow-datasets 4.1.0 requires tensorflow-metadata, which is not installed.
ERROR: apache-beam 2.25.0 has requirement avro-python3!=1.9.2,<1.10.0,>=1.8.1, but you'll have avro-python3 1.10.0 which is incompatible.
ERROR: apache-beam 2.25.0 has requirement dill<0.3.2,>=0.3.1.1, but you'll have dill 0.3.3 which is incompatible.
ERROR: apache-beam 2.25.0 has requirement future<1.0.0,>=0.18.2, but you'll have future 0.17.1 which is incompatible.
ERROR: apache-beam 2.25.0 has requirement mock<3.0.0,>=1.0.1, but you'll have mock 3.0.5 which is incompatible.
ERROR: apache-beam 2.25.0 has requirement requests<3.0.0,>=2.24.0, but you'll have requests 2.22.0 which is incompatible.
Installing collected packages: dill
Successfully installed dill-0.3.3

自pip安装了与pypi包相关的所有依赖项以来,我从未经历过这种情况。我不明白为什么会发生这种事。有什么办法解决吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-12-17 16:03:03

我通过重新安装上面的软件包解决了这个问题。

代码语言:javascript
复制
pip install tensorflow-datasets
pip install apache-beam

我不知道为什么没有预先安装所需的软件包。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65293925

复制
相关文章

相似问题

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