TensorFlow 2.1入门

TensorFlow 2.1

1.安装

首先尝试官方安装:pip install tensorflow,但是由于网络的原因总会显示安装错误,采取以本地whl文件的方式进行安装

  • 获取whl文件地址:tensorflow2.1,复制链接到迅雷进行下载

  • 打开Anaconda Prompt,输入一下指令
    pip install D:\PythonLLL\TensorFlow2\tensorflow-2.1.0-cp36-cp36m-win_amd64.whl

  • 安装错误
    bash Could not find a version that satisfies the requirement grpcio>=1.8.6 No matching distribution found for grpcio>=1.8.6 (from tensorflow == 2.1.0)
    解决方法:安装最新的Numpy

    no matching distribution found for h5py (from keras-applications>=1.0.8- >tensorflow==2.1.0)
    解决方法:安装最新的h5py

  • 安装提示
    涉及因网络错误而导致的安装问题请务必再试一次,再试一次

  • 安装成功

你可能感兴趣的:(TensorFlow,2.x)