首页 > 解决方案 > 使用pip安装tensorflow时如何处理ERROR

问题描述

我正在尝试使用 pip 命令在 python 中安装 tensorflow

pip install --upgrade --ignore-installed tensorflow

并收到错误消息

ERROR: spyder 3.3.6 requires pyqt5<5.13; python_version >= "3", which is not installed.
ERROR: spyder 3.3.6 requires pyqtwebengine<5.13; python_version >= "3", which is not installed.
ERROR: astroid 2.3.1 requires typed-ast<1.5,>=1.4.0; implementation_name == "cpython" and python_version < "3.8", which is not installed.
ERROR: astroid 2.3.1 has requirement six==1.12, but you'll have six 1.15.0 which is incompatible.
ERROR: astroid 2.3.1 has requirement wrapt==1.11.*, but you'll have wrapt 1.12.1 which is incompatible.

那么我该如何安装它们呢?

标签: pythontensorflow

解决方案


您是否已经安装了 tensorflow 版本?假设您在此处使用 --ignore-installed 选项......这显然会使 tensorflow 无法安装所需的依赖项。尝试不使用 --ignore-installed (它将覆盖现有安装并希望更新所有要求)


推荐阅读