普通安装 :pip install + 库
指定版本安装 :
pip install + 库==版本 pip install pygame==1.9.6
卸载安装的库 : pip uninstall + 库
更新库:pip install -U +库
列出已安装的库 : pip list 或 pip freeze
把已安装的库安装到另一台设备上
在D盘创建一个requirement.txt文件
pip freeze > D:\requirement.txt
把下载的库名全部导进这个文本里了
pip install -r D:\requirement.txt
把文本里的库 全部安装下来
展示库
pip show pygame