【发布时间】:2020-09-13 00:12:58
【问题描述】:
我刚遇到pip package I want to use,但是我是 python 和 PIP 的新手,不确定 - 是否可以直接从终端/命令行运行它。如果是这样,我似乎找不到运行 pip 包的语法。
所以我安装了 pip 使用:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
然后
python get-pip.py
然后我通过命令python -m pip检查安装
然后我安装了这样的包:
python -m pip install openapi-cli-tool
无论如何,根据该软件包的文档,我虽然可以这样做:
openapi-cli-tool bundle -t html file1.json file2.yaml` > ./specification.html
哪个没用,这个也没用:
python -p pip openapi-cli-tool bundle -t html file1.json file2.yaml` > ./specification.html
如有任何帮助解释这是如何工作的,我们将不胜感激。
【问题讨论】:
-
请解释“不起作用”。