1.打开 开始——Anaconda3——Anaconda Prompt
2.输入 pip install <name>
如 pip install pyinstaller(打包python程序的第三方库)等待安装完成即可
3.pip的常用命令
install 安装库
uninstall 卸载库
list 列出已经安装库的信息
show 列出已经安装库的详细信息
search 通过PyPI搜索库
help 帮助命令
如查看install命令的使用帮助可以输入指令: pip help install
下载安装库的命令格式:pip install [name]
对已经安装的库的更新:pip install -U [name]
卸载已安装库:pip uninstall [name]
显示已安装库的列表:pip list
显示有更新的库:pip list -- outdated
显示已安装库的详细信息:pip show [name]
在PyPI中搜索库名或摘要中的关键字:pip search [关键字]