dongsui5464 2019-04-17 14:42
浏览 164
已采纳

尝试安装gonum时如何处理“不允许导入周期”?

I'd like to use the gonum libraries for go in order to experiment with some neural network stuff but I cannot go past the install process...

I'm running the command found on the official gonum website :

go get -u -t gonum.org/v1/gonum/...

But it gives me :

import cycle not allowed
package gonum.org/v1/gonum
    imports runtime
    imports internal/bytealg
    imports internal/cpu
    imports runtime

Do you know what could be a reason for such a problem?

In case you need my go env in order to help me out, here it is :

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/me/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"

I'm running go 1.6.2.

  • 写回答

1条回答 默认 最新

  • dongyong1897 2019-04-17 15:34
    关注

    As Adrian told in the comments, the issue was that the go version I was running was too old for gonum to install correctly. This was due to the fact that the go-golang package installed on my computer via apt-get was giving me the 1.6 version of go. By removing the package and making sure I had a recent go release installed on my computer I managed to install gonum.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题