本文介绍了为什么“点子显示"或“点子列表"对我不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Python的pip正在为我安装和更新软件包,但是似乎不支持某些文档化的命令(至少在OS 10.8.2和Python 2.7.2上运行的1.2.1).当我尝试

Python's pip is working for me to install and update packages, but some of the documented commands seem not to be supported (at least with 1.2.1 running on OS 10.8.2 and Python 2.7.2). When I try

pip list

pip show <pkgname>

我知道

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

这些命令是否尚未实现(尽管已记录在案)?

Are these commands not yet implemented (despite being documented)?

推荐答案

您正在寻找的新功能是最新的-它们位于1.2.1.post1中,而不位于1.2.1中,并且文档中您可能正在查看(http://www.pip-installer.org/en/latest/)当前用于1.2.1.post1.

The new functions you're looking for are very recent -- they're in 1.2.1.post1, but not in 1.2.1, and the docs you're probably looking at (http://www.pip-installer.org/en/latest/) are currently for 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

如果需要它们,可以获取开发版本:

If you want them, you can get the development version:

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

这篇关于为什么“点子显示"或“点子列表"对我不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 01:42