如果我有 PyYAML 3.12,它要求 5.1,如果我安装版本 5.1,它要求 3.12


C:UsersAdmin>pip install pyyaml==5.1
Collecting pyyaml==5.1
Using cached https://files.pythonhosted.org/packages/b6/74/c3e15707516f80192059dde32c9d78f00a88c9f3c4d1efd76cbc8d5b0a20/PyYAML-5.1-cp37-cp37m-win_amd64.whl
chatterbot-corpus 1.2.0 has requirement PyYAML<4.0,>=3.12, but you'll have pyyaml 5.1 which is incompatible.
Installing collected packages: pyyaml
Found existing installation: PyYAML 3.13
Uninstalling PyYAML-3.13:
Successfully uninstalled PyYAML-3.13
Successfully installed pyyaml-5.1
You are using pip version 10.0.1, however version 19.3.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
C:UsersAdmin>pip install chatterbot-corpus
Requirement already satisfied: chatterbot-corpus in c:usersadminappdatalocalprogramspythonpython37libsite-packages (1.2.0)
Collecting PyYAML<4.0,>=3.12 (from chatterbot-corpus)
Using cached https://files.pythonhosted.org/packages/bf/96/d02ef8e1f3073e07ffdc240444e5041f403f29c0775f9f1653f18221082f/PyYAML-3.13-cp37-cp37m-win_amd64.whl
chatterbot 1.0.5 has requirement pyyaml<5.2,>=5.1, but you'll have pyyaml 3.13 which is incompatible.
Installing collected packages: PyYAML
Found existing installation: PyYAML 5.1
Uninstalling PyYAML-5.1:
Successfully uninstalled PyYAML-5.1
Successfully installed PyYAML-3.13

你必须安装chatterbot_corpus而不是chatterbot-corpus,是不同的

pip install chatterbot_corpus

pip3 install chatterbot_corpus

相关内容

最新更新