pip的实验端口使用distutils2。
pip2的Python项目详细描述
安装
从pypi安装一个或多个包(忽略依赖项)。
用法:pip2 install <package>...
示例:
$ pip2 install package1 Successfully installed package1 $ pip2 install package2 package3 Successfully installed package2 package3 $ pip2 install package_that_doesnt_exist_or_fails_to_install Failed to install package_that_doesnt_exist_or_fails_to_install
冻结
显示当前安装包的列表。
用法:pip2 freeze
示例:
$ pip2 freeze $ # ...Install a few packages... $ pip2 freeze package1 package2 package3
搜索
搜索Pypi。
用法:pip2 search <query>
示例:
$ pip2 search query_with_no_results $ pip2 search pypy JitViewer pypyenv tkinter-pypy pypq eolfixer hackbeil
卸载
卸载一个或多个程序包。
用法:pip2 uninstall <package>...
示例:
$ pip2 uninstall package Successfully uninstalled package1 $ pip2 uninstall package2 package3 Successfully uninstalled package2 package3 $ pip2 uninstall package_that_isnt_installed_or_failed_to_uninstall Failed to uninstall package_that_isnt_installed_or_failed_to_uninstall