pip - 通过 pip 安装包时版本要求不兼容

标签 pip conda python-packaging

我有一个 conda 环境。我要安装DeepSpeech在里面。当我通过 pip 安装它时,出现错误,但 deepspeech 包仍然安装。

ERROR: tensorflow 2.1.0 has requirement scipy==1.4.1; python_version >= "3", but you'll have scipy 1.5.0 which is incompatible.
ERROR: tensorflow 2.1.0 has requirement tensorboard<2.2.0,>=2.1.0, but you'll have tensorboard 2.2.1 which is incompatible.

这是什么意思?我知道我之前安装过tensorflow,这是否意味着它已重新安装,但它仍然具有以前的依赖项,或者其他库已更改并且以前的tensorflow现在不兼容。

pip3 check的输出

tensorflow 2.1.0 has requirement scipy==1.4.1; python_version >= "3", but you have scipy 1.5.0.
tensorflow 2.1.0 has requirement tensorboard<2.2.0,>=2.1.0, but you have tensorboard 2.2.1.
pathos 0.2.7 has requirement dill>=0.3.3, but you have dill 0.2.9.
multiprocess 0.70.11.1 has requirement dill>=0.3.3, but you have dill 0.2.9.

最佳答案

尝试一下:

pip uninstall scipy
pip uninstall tensorboard 
pip install --ignore-installed tensorflow==2.1.0

关于pip - 通过 pip 安装包时版本要求不兼容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65378627/

相关文章:

python - 如何在不使用子进程的情况下从 python 自动化脚本中运行 python 'sdist' 命令?

python - 安装 PyAudio "Failed Building Wheel for PyAudio"时出错

python - 错误 libtorch_python.so : cannot open shared object file: No such file or directory

python - 如何在 Windows 上完全卸载(迷你)conda

python - 防止包安装在旧的 Python 版本上

python - 在弃用受支持的 Python 版本时,我应该修改 SemVer 的哪一部分?

python - 如何从 docker-compose 安装 requirements.txt?

python - 在 Windows、OSX 和 LINUX 中安装 GSL

python-3.x - 将 anaconda 虚拟环境更新为特定的 python 版本

python - 在保持向后兼容性的同时更改 Python 模块名称的最佳实践是什么?