参考资料:
https://blog.csdn.net/yuejisuo1948/article/details/84197534
https://blog.csdn.net/edrlyh/article/details/103632952
https://www.tensorflow.org/install/source_windows#tested_build_configurations
编译tensorflow2.0.1:
1.tensorflow2.0.1 源码地址: https://github.com/tensorflow/tensorflow/releases/tag/v2.0.1
2.下载 、安装msys64 https://www.msys2.org/
3.安装 Bazel
4. pacman -S git patch unzip
到tensorflow2.0.1文件夹下 cd /d d:
cd D: ensorflow-2.0.1
6. python ./configure.py
7.bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package