整個(gè)過(guò)程參考這個(gè)。
中間遇到了個(gè)問(wèn)題,提示已存在numpy并且卸載不了,參考這個(gè)關(guān)閉了sip保護(hù),參考這個(gè)卸載了numpy,并且記得一定要sudo。
然后在執(zhí)行到sess=tf.Session()又遇到了一個(gè)問(wèn)題:
2018-07-11 18:55:53.673999: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
參考這個(gè)解決。成功Hello TensorFlow。