【发布时间】:2016-11-16 14:54:43
【问题描述】:
在我的工作服务器上,我运行sudo pip install httpie,它允许我执行http google.com。
在我的学校服务器上,我运行pip install --user httpie。当我尝试使用该实用程序时,我收到 http: command not found 错误。我知道包安装在
/home/grads/me/.local/lib64/python2.7/site-packages/httpie
但我不太确定如何注册命令行工具。我的工作服务器说该命令位于/usr/bin/http,但我无法在我的学校服务器上找到二进制文件。
我确实尝试过find / |& grep http 之类的方法,但要查看的东西太多了。我假设我只需要向我的PATH 添加一些内容,但问题是什么?
【问题讨论】:
标签: python command-line-interface httpie