windows系统下安装包:
在命令提示符中cd到python所在的scripts位置 输入 pip install 包名
eg
EXCEL写包:pip install xlwt
画图工具包 :pip install matplotlib
Successfully installed cycler-0.10.0 kiwisolver-1.1.0 matplotlib-3.1.2 numpy-1.18.0 pyparsing-2.4.6 python-dateutil-2.8.1 six-1.13.0
You are using pip version 18.1, however version 19.3.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
安装过程如果出现某些包需要更新:
1.使用pip list --outdated 查看哪些包需要更新
2.再使用 pip install --upgrade XXX 更新包。