Spyder 安装 openpyxl:
No module named 'openpyxl'
理想状态
通过python 打开excel
先安装 pip install openpyxl
再在代码 import openpyxl
已安装openpyxl,但是报错—No module named ‘openpyxl’:
pip list 安装包可以看见已安装openpyxl:
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/e4222375ee9bbe96cc8cf639391b08fd.png)
解决方案:
猜测:没有在spyder中配置openpyxl
查看spyder中的安装包,发现确实没有openpyxl
解决办法:将python的openpyxl复制到spyder的pkgs