我要在colab中编译一些东西,我需要知道tensorflow的路径,所以我运行了代码:
import tensorflow
print(tensorflow.version)
print("\n")
print(tensorflow.path)
我希望获得确切的tensorflow路径。但是我得到了一个包含三个路径的列表,我想知道应该选择哪个路径。
输出如下所示:
1.15.2
['/tensorflow-1.15.2/python3.6/tensorflow_core/python/keras/api/_v1',
'/tensorflow-1.15.2/python3.6/tensorflow_estimator/python/estimator/api/_v1',
'/tensorflow-1.15.2/python3.6/tensorflow_core', '/tensorflow-1.15.2/python3.6/tensorflow_core/_api/v1']