我有一个 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/