2

这是python版本:

Python 3.6.5 

我想安装 ruamel:

pip3 install ruamel

但我无法安装它:

(venvpython3) d3alg@ubuntu-59:/$ python
Python 3.6.5 (default, Apr  1 2018, 05:46:30)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
(venvpython3) d3alg@ubuntu-59:/$ pip3 install ruamel
Collecting ruamel
  Could not find a version that satisfies the requirement ruamel (from versions: )
No matching distribution found for ruamel

我究竟做错了什么?

4

1 回答 1

2

如果您搜索PyPIruamel您将看到没有具有该名称的包。所有可用的包都将该字符串作为命名空间 ( ruamel.)。您实际上必须选择要安装的每个包(尽管有些依赖于其他包并引入多个“ ruamel.”命名空间包):

pip3 install -y ruamel.yaml
于 2018-06-05T03:57:31.917 回答