基本流程
python -m pip install -U pip
pip install --upgrade numpy
pip install tensorflow
问题描述
anaconda安装tensorflow出现报错
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
scipy 1.6.2 requires numpy<1.23.0,>=1.16.5, but you have numpy 1.24.3 which is incompatible.
解决办法
先卸载原有的numpy,然后按要求安装特定版本的numpy
pip install --upgrade numpy==1.22.0