为什么不是“点子秀”还是我'点子名单的工作?(Why don't 'pip

2019-08-04 20:28发布

Python的pip为我工作的安装和更新包,但一些文件的命令似乎没有得到支持(至少在OS 10.8.2和Python 2.7.2运行1.2.1)。 当我尝试

pip list

要么

pip show <pkgname>

我得到

Usage: pip COMMAND [OPTIONS]
No command by the name pip <cmd>
  (maybe you meant "pip install <cmd>")

难道这些命令还没有实现(尽管被记录)?

Answer 1:

您正在寻找新的功能都非常近 - 他们在1.2.1.post1,但不是在1.2.1,并且你可能看(HTTP文档://www.pip-installer。组织/ EN /最新/)目前为1.2.1.post1。

localhost-2:~ $ pip --version
pip 1.2.1.post1 from /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.2.1.post1-py2.7.egg (python 2.7)
localhost-2:~ $ pip --help
Usage: pip COMMAND [OPTIONS]

Commands:
  bundle               Create pybundles (archives containing multiple packages)
  freeze               Output all currently installed packages (exact versions) to stdout
  help                 Show available commands
  install              Install packages
  list                 List installed packages (including editables).
  search               Search PyPI
  show                 Output installed distributions (exact versions, files) to stdout
  uninstall            Uninstall packages
  unzip                Unzip individual packages
  zip                  Zip individual packages

如果你希望他们,你可以得到开发版:

git clone https://github.com/pypa/pip.git


Answer 2:

他们记录在哪里? 煤矿没有表现出任何这样的命令:

hd1 % pip help
Usage: pip COMMAND [OPTIONS]
 --version                    show program's version number and exit
 -h, --help                   Show help
 -v, --verbose                Give more output
 -q, --quiet                  Give less output
 --log <FILENAME>             Log file where a complete (maximum verbosity) record will be kept
 --proxy <PROXY>              Specify a proxy in the form user:passwd@proxy.server:port. Note that the user:password@ is optional and required only if you are behind an authenticated proxy. If you provide
                              user@proxy.server:port then you will be prompted for a password.
 --timeout <SECONDS>          Set the socket timeout (default 15 seconds)
 --exists-action <EXISTS_ACTION>
                              Default action when a path already exists. Use this option more than one time to specify another action if a certain option is not available. Choices: (s)witch, (i)gnore,
                              (w)ipe, (b)ackup

Commands available:
  bundle: Create pybundles (archives containing multiple packages)
  freeze: Output all currently installed packages (exact versions) to stdout
  help: Show available commands
  install: Install packages
  search: Search PyPI
  uninstall: Uninstall packages
  unzip: Unzip individual packages
  zip: Zip individual packages


Answer 3:

可用命令包括作为PIP 1.1的是:

  • 捆绑:创建pybundles(含有多个包档案)
  • 冻结:输出所有已安装的软件包(确切的版本)到stdout
  • 帮助:显示可用的命令
  • 安装:安装包
  • 搜索:搜索的PyPI
  • 卸载:卸载程序包
  • 解压缩:解压缩单个包
  • 邮编:邮编单个软件包

对于安装包的列表,请尝试蛋黄 。



文章来源: Why don't 'pip show' or 'pip list' work for me?
标签: python macos pip