PIP常用命令
列出已安装的包
# Output installed packages in requirements format.
pip freeze
# List installed packages.
pip list
查询可升级的包
pip list -o
升级pip
pip install -U pip
升级包
pip install -U packages_name
pip install packages_name --upgrade
在线安装
pip install packages_name
导出到文本
pip freeze > packages_path/***.txt
本地安装
pip install packages_paht/packages_name
pip install --use-wheel --no-index --find-links=packages_paht/ packages_name名
packages_name前有空格,可简写为
pip install --no-index -f=packages_paht/ packages_name
卸载包
pip uninstall packages_name
显示包所在的目录
pip show -f packages_name
搜索包
pip search packages_name