# 查看 Python 版本
$ python3 --version
# 查看安装的pip版本
$ python3 -m pip --version
# 通过 pip 命令安装 Python 扩展库
python3 -m pip install numpy
python3 -m pip install pandas
python3 -m pip install scipy
python3 -m pip install openpyxl
python3 -m pip install pillow
python3 -m pip install jieba
python3 -m pip install matplotlib
pip3 install matplotlib
![](https://img2024.cnblogs.com/blog/35695/202408/35695-20240826070647288-243310440.jpg)