如何在python2环境中安装Bazel?tensorflow网站上发布了这样的错误:“注意:由于Bazel错误,我们只支持在python2环境中构建安卓演示应用程序”,(请参阅Windows上的相关Bazel安装“>Windows上的Bazel安装)。如何在python2环境中安装bazel (使用bazel)?在python2环境中安装Bazel可能是Tensorflow网站上之前显示的错误的变通方法,它们似乎没有任何其他已知的变通方法。
发布于 2018-09-17 17:01:55
Python
--python_path flag2,告诉巴泽尔
例如,如果您在c:\python2下安装了Python2,请按如下方式运行Bazel:
c:\tensorflow> bazel build --python_path=c:/python2/python.exe //foo:bar如果希望Bazel在此工作区(c:\tensorflow)中始终使用此标志,请在c:\tensorflow\.bazelrc中添加以下行
build --python_path=c:/python2/python.exe(您可能需要在每次重新运行configure脚本时添加此行。)
更新:here's more info about .bazelrc files3,它们是什么,它们在哪里,如何指定它们。
https://stackoverflow.com/questions/52305404
复制相似问题