错误:找不到满足要求pprint的版本(来自-r requirements.txt(第67行))(来自版本:无) [英] error: Could not find a version that satisfies the requirement pprint (from -r requirements.txt (line 67)) (from versions: none)

查看:251
本文介绍了错误:找不到满足要求pprint的版本(来自-r requirements.txt(第67行))(来自版本:无)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Macbook Pro上安装NLP套件,该套件已更新为最新的软件版本Catalina 10.15.6。到目前为止,我已经安装了Anaconda 3.8,通过创建了3.7版本的NLP环境conda create -n NLP python = 3.7 ,并通过激活了NLP环境conda激活NLP

I am trying to install a NLP suite on my macbook pro, which is updated to the most recent software version Catalina 10.15.6. So far, I have installed Anaconda 3.8, created a version 3.7 NLP environment by conda create -n NLP python=3.7, and activated the NLP environment by conda activate NLP.

下一步是安装所有写在文件 requirements.txt中的python软件包。使用以下命令 pip install -r requirements.txt 。但是,它展示了以下消息:
< ERROR:找不到满足要求pprint的版本(来自-r requirements.txt(第67行))(来自版本:无)
错误:找不到与pprint匹配的发行版(来自-r requirements.txt(第67行)

My next step is to install all python packages that are written in the file "requirements.txt" with the following command pip install -r requirements.txt. However, it showcases this message: "ERROR: Could not find a version that satisfies the requirement pprint (from -r requirements.txt (line 67)) (from versions: none) ERROR: No matching distribution found for pprint (from -r requirements.txt (line 67))"

我也尝试过单独安装该软件包,但是,同样的错误消息出现。

I also tried installing the package alone, however, the same error message appears.

任何建议将不胜感激!请让我知道我是否可以提供其他信息。

Any advice would be appreciated! Please let me know if any additional information I can provide.

推荐答案

pprint 是标准库的一部分,因此不能出现在 requirements.txt 中。如果您的要求之一要求进行pprint,则会出现错误。要安装没有依赖性的文件,请使用-no-deps 命令进行pip。但是,由于您可能会错过其他软件包,因此不能保证安装的实际效果。因此,一个更好的选择是逐个安装每个需求,直到找到需要的需求并安装其其他依赖项,并使用no-deps安装该软件包。

pprint is part of the standard library, therefore cannot be present in requirements.txt. If one of your requirements is stated to require pprint you'll get an error. To install without dependencies use the --no-deps command for pip. However, this does not guarantee that the installation actually worked as you are likely missing out on other packages. So a better option is installing each requirement one by one until you find the one that needs it and install its other dependencies and install that package with no-deps.

一种替代方法是使用< a href = https://pypi.org/project/pipdeptree/ rel = nofollow noreferrer> https://pypi.org/project/pipdeptree/ 检查依赖关系树。

An alternative is to use https://pypi.org/project/pipdeptree/ to inspect the dependency tree.

如果有很多软件包并且冻结了版本,请尝试删除版本。

If there are many packages and there is a version freeze, try dropping the versions.

这是一个反复试验和发现错误的工作,因此可以聪明:它可能是罪魁祸首,很少使用。

It is a bit of trial and error detective work, so one can be smart about it: it is likely a less used dependency that is the culprit.

这篇关于错误:找不到满足要求pprint的版本(来自-r requirements.txt(第67行))(来自版本:无)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆