duanshan5259 2017-02-21 05:47
浏览 56

“获得”之后的GO命令行问题

So i just installed GO for the use of Primitive (here's the README.md) https://github.com/fogleman/primitive. What essentially is supposed to happen is that you give in an image and it recreates it using polygons. Here is an example of an image reconverted using Primitive https://codepen.io/DavQ/pen/wgVWzo

As it states

Command-line Usage

go get -u github.com/fogleman/primitive

primitive -i input.png -o output.png -n 100

The first command runs fine and I checked if i had it with "go list ./..." I am now within a test folder with just one image within the folder called "recursion.jpg" and run the command the docs provide

primitive -i recursion.jpg -o recursion.svg -n 100

The problem is with the command, I get the returned

-bash: primitive: command not found

obviously primitive is not a command the terminal recognizes, but as I just installed GO today for the sole use of Primitive, I am wondering what I might be missing?

  • 写回答

1条回答 默认 最新

  • duankuaizhe8257 2017-02-21 05:52
    关注

    The README assumes that $GOPATH/bin is on your path. Try running $GOPATH/bin/primitive or $HOME/go/bin/primitive if you did not set GOPATH.

    评论

报告相同问题?

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题