1.python版本
python版本3.12,安装tensorflow会报错:
经过多次实验,使用的python版本是3.9.0
2.安装tensorflow
a. pip install --trusted-host http://mirrors.aliyun.com/pypi/simple/ tensorflow==2.6.0
速度有点慢,半个多小时了还会报超时错误,不推荐
b.推荐
pip install tensorflow==2.15.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
注意版本号:python 3.9.0 和 tensorflow 2.15.0