python 包管理工具之pip简介

栏目: Python · 发布时间: 7年前

内容简介:相关问题:
  1. 安装 python
    1. pip install $package_name
      
  2. 查看已安装的python包
    1. pip list
      
  3. 显示指定包信息
    1. pip show $package_name
      
  4. 查看指定包包含的所有文件的列表(以及包信息)
    1. pip show -f $package_name
      
  5. 卸载包
    1. pip uninstall $package_name
      
  6. 搜索包
    1. pip search $package_name
      
  7. 查看帮助
    1. pip -h
      
    2. pip sub-cmd -h
      
  8. 命令行自动补全
    1. . <(pip completion --bash)
      
  9. 查看当前已安装包和版本号
    1. pip freeze
      
  10. 检查已安装包完整性
    1. pip check
      
  11. Done

相关问题:

  1. pip install aliyuncli 后发现依然没有aliyuncli命令
    1. 查看aliyuncli安装到哪里了
      # pip show -f aliyuncli
      Name: aliyuncli
      Version: 2.1.9
      Summary: Universal Command Line Environment for aliyun
      Home-page: http://docs.aliyun.com/?spm=5176.1829009.1002.1.LxlLfS#/pub/aliyun-command-line-interface
      Author: aliyun-developers-efficiency
      Author-email: aliyun-developers-efficiency@list.alibaba-inc.com
      License: UNKNOWN
      Location: /home/phpor/.local/lib/python2.7/site-packages
      Requires: colorama, jmespath
      
    2.  查看安装包中有没有aliyuncli这个命令(肯定是有的)
      $ pip show -f aliyuncli
      Name: aliyuncli
      Version: 2.1.9
      Summary: Universal Command Line Environment for aliyun
      Home-page: http://docs.aliyun.com/?spm=5176.1829009.1002.1.LxlLfS#/pub/aliyun-command-line-interface
      Author: aliyun-developers-efficiency
      Author-email: aliyun-developers-efficiency@list.alibaba-inc.com
      License: UNKNOWN
      Location: /home/phpor/.local/lib/python2.7/site-packages
      Requires: colorama, jmespath
      Files:
        ../../../bin/aliyun_completer
        ../../../bin/aliyun_zsh_complete.sh
        ../../../bin/aliyuncli
      ...
      
    3. 基本可知,aliyuncli相关命令安装在了 /home/phpor/.local/bin 下面,该路径应该没有在$PATH中,添加到$PATH就行了
    4. Done

以上所述就是小编给大家介绍的《python 包管理工具之pip简介》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Learning Vue.js 2

Learning Vue.js 2

Olga Filipova / Packt Publishing / 2017-1-5 / USD 41.99

About This Book Learn how to propagate DOM changes across the website without writing extensive jQuery callbacks code.Learn how to achieve reactivity and easily compose views with Vue.js and unders......一起来看看 《Learning Vue.js 2》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

html转js在线工具
html转js在线工具

html转js在线工具