- 安装python包
-
1pip install $package_name
-
- 查看已安装的python包
-
1pip list
-
- 显示指定包信息
-
1pip show $package_name
-
- 查看指定包包含的所有文件的列表(以及包信息)
-
1pip show -f $package_name
-
- 卸载包
-
1pip uninstall $package_name
-
- 搜索包
-
1pip search $package_name
-
- 查看帮助
-
1pip -h
-
1pip sub-cmd -h
-
- 命令行自动补全
-
1. <(pip completion --bash)
-
- 查看当前已安装包和版本号
-
1pip freeze
-
- 检查已安装包完整性
-
1pip check
-
- Done
相关问题:
- pip install aliyuncli 后发现依然没有aliyuncli命令
- 查看aliyuncli安装到哪里了
12345678910# pip show -f aliyuncliName: aliyuncliVersion: 2.1.9Summary: Universal Command Line Environment for aliyunHome-page: http://docs.aliyun.com/?spm=5176.1829009.1002.1.LxlLfS#/pub/aliyun-command-line-interfaceAuthor: aliyun-developers-efficiencyAuthor-email: aliyun-developers-efficiency@list.alibaba-inc.comLicense: UNKNOWNLocation: /home/phpor/.local/lib/python2.7/site-packagesRequires: colorama, jmespath - 查看安装包中有没有aliyuncli这个命令(肯定是有的)
123456789101112131415$ pip show -f aliyuncliName: aliyuncliVersion: 2.1.9Summary: Universal Command Line Environment for aliyunHome-page: http://docs.aliyun.com/?spm=5176.1829009.1002.1.LxlLfS#/pub/aliyun-command-line-interfaceAuthor: aliyun-developers-efficiencyAuthor-email: aliyun-developers-efficiency@list.alibaba-inc.comLicense: UNKNOWNLocation: /home/phpor/.local/lib/python2.7/site-packagesRequires: colorama, jmespathFiles:../../../bin/aliyun_completer../../../bin/aliyun_zsh_complete.sh../../../bin/aliyuncli... - 基本可知,aliyuncli相关命令安装在了 /home/phpor/.local/bin 下面,该路径应该没有在$PATH中,添加到$PATH就行了
- Done
- 查看aliyuncli安装到哪里了