“去测试github.com/tensorflow/tensorflow/tensorflow/go”失败

我做到了这些:</ p>


  1. 在Mac上安装TensorFlow OS X,按照步骤进行。</ li>
  2. 按照以下步骤安装TensorFlow for Go。</ li>
    </ ol>

    我收到以下错误:</ p>

      macbookpro:〜fredlee $去获取github.com/tensorflow/tensorflow/tensorflow/go
    macbookpro:~ fredlee $去测试github.com/tensorflow/tensorflow/tensorflow/go \ n
    信号:杀死
    失败github.com/tensorflow/tensorflow/tensorflow/go 0.006s
    </ code> </ pre>

    同时,当我这样做时:</ p>


    1. 按照以下步骤安装TensorFlow for C,</ li>
      </ ol>

      效果很好。</ p>

        macbookpro:从TensorFlow C库版本1.1.0下载fredlee $ ./a.out 
      Hello
      macbookpro:下载fredlee $
      </ code> </ pre>

      谁能告诉 我如何使Go版本正常工作?</ p>
      </ div>

展开原文

原文

I did these:

  1. Installing TensorFlow on Mac OS X, following the steps.
  2. Installing TensorFlow for Go, following the steps.

I get the following error:

macbookpro:~ fredlee$ go get github.com/tensorflow/tensorflow/tensorflow/go
macbookpro:~ fredlee$ go test github.com/tensorflow/tensorflow/tensorflow/go

signal: killed
FAIL    github.com/tensorflow/tensorflow/tensorflow/go  0.006s

Meanwhile, when I do this:

  1. Installing TensorFlow for C, following the steps,

it works well.

macbookpro:Downloads fredlee$ ./a.out  
Hello from TensorFlow C library version 1.1.0 
macbookpro:Downloads fredlee$

Can anyone tell me how to make the Go version work?

du7999
du7999 谢谢,当前我使用go1.8,并出现上述问题。更新go1.8.3后,我遇到另一个问题,请查看stackoverflow.com/questions/44428816/…
3 年多之前 回复
dsa80833
dsa80833 您正在使用哪个版本的Go编译器?似乎在1.8.1版本中修复了许多与OSX相关的问题
3 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问