pip

python自带pip
通过pip -V查看pip版本:
image.png
通过C:\Users\niuyinglei\AppData\Local\Programs\Python\Python310\python.exe -m pip install --upgrade pip升级:
image.png
pip list查看目前安装了那些库:
image.png

安装jupyter

*win下好像不叫_jupyter_而叫做_ipython_
使用命令pip install ipython,为什么这里的命令和macOS不同:python3 -m pip install jupyter有疑问
安装完成,输入ipython,直接打开:
image.png
安装完ipython后才可以安装jupyter有疑问,使用pip install jupyter安装,完成后使用jupyter验证是否成功:
image.png

通过jupyter notebook运行notebook

image.png
参考

检查缺少的库

入离职项目

在notebook中尝试import,可以看到缺少pandas
image.png
安装pandas:
image.png
缺少openpyxl:
image.pngimage.png