怎么在电脑中安装openpyxl库

时间:2024-10-13 07:35:32

1、使用win+R键调出运行窗口,在里面输入cmd。

怎么在电脑中安装openpyxl库

2、点击确定,打开cmd窗口。

怎么在电脑中安装openpyxl库

3、输入pip install openpyxl,不报错代表安装成功。

怎么在电脑中安装openpyxl库

4、此时,打开本机的IDEL。

怎么在电脑中安装openpyxl库

5、输入import openpyxl,然后回车,没有报错,就代表在当前环境下使用无误。

怎么在电脑中安装openpyxl库

6、如果需要卸载这个库,使用的是pip uninstall openpyxl,如下图所示。

怎么在电脑中安装openpyxl库
© 手抄报圈