玉树临风1935 发表于 2022-10-22 09:22:39

python如何安装操作Excel的模块

python如何安装操作Excel的模块,貌似找不到python的文件夹

wp231957 发表于 2022-10-22 09:42:37

python能正常运行不??
如果能,那么不用考虑路径问题!直接pip就可以
选一个你喜欢的模块

suchocolate 发表于 2022-10-22 09:44:13

1)先确保你的电脑正确安装了python并设置了环境变量:https://www.runoob.com/python3/python3-install.html
2)安装openpyxl模块,它可以操控excel:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple openpyxl

Twilight6 发表于 2022-10-22 09:50:33


pandas 模块、openpyxl 模块 都可以对excel 进行操作

打开 cmd ,用 pip 安装 pandas 模块:

python -m pip install pandas -i https://pypi.tuna.tsinghua.edu.cn/simple

安装 openpyxl 模块:

python -m pip install openpyxl -i https://pypi.tuna.tsinghua.edu.cn/simple

玉树临风1935 发表于 2022-10-22 10:31:11

Twilight6 发表于 2022-10-22 09:50
pandas 模块、openpyxl 模块 都可以对excel 进行操作

打开 cmd ,用 pip 安装 pandas 模块:


运行了,但是输入importxlrd没有输入完就弹出个框框,
页: [1]
查看完整版本: python如何安装操作Excel的模块