ModuleNotFoundError: No module named 'openpyxl' in python 3.6

匿名 (未验证) 提交于 2019-12-03 01:36:02

问题:

I have installed openpyxl through pip.

openpyxl package is present in below path

..\AppData\Local\Programs\Python\Python36-32\Lib\site-packages 

I am using pycharm

In my code if I type

import openpyxl

openpyxl is highlighted with red color. If we move the cursor over openpyxl.Given below message is displayed

NO MODULE NAMED OPENPYXL

If I run the code ,I get the below error

import openpyxl ModuleNotFoundError: No module named 'openpyxl' 

回答1:

Goto File>Settings>Project>Project Interpreter

Hit +

Search openpyxl

Click Install Package

This is how you install packages easily in pycharm instead of pip



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!