anaconda中安装TensorFlow的方法

时间:2023-03-09 14:43:18
anaconda中安装TensorFlow的方法

作为一个新手党加手残党真的折腾了好久才搞定,记录一下。

step1:在anaconda prompt终端中输入 pip3 install -i anaconda中安装TensorFlow的方法https://pypi.tuna.tsinghua.edu.cn/simple/ --upgrade tensorflow,用镜像安装速度会快很多。注意如果出现黄色警告,看一下是不是需要更新pip

step2:卸载并重新安装numpy,卸载pip用命令  pip uninstall numpy ,  重新安装pip install -i anaconda中安装TensorFlow的方法https://pypi.tuna.tsinghua.edu.cn/simple numpy。

step3:现在去Python notebook里 输入一个 import tensorflow as tf 试试,如果没有报错则表示安装成功。