访问openpyxl时发生以下错误:
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "D:\PyCharm\PyCharm Community Edition
2017.3.3\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 20, in
do_import
module = self._system_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'openpyxl'
解决方案
在pycharm,转到File-> settings-> project Interpreter 然后单击右上角的+按钮,您将弹出安装软件包的窗口。
然后搜索,openpyxl您将获得最新的软件包。然后单击Install package以安装它。
更多Python知识,请关注!!