🐍 Fix ModuleNotFoundError (No Module Named openpyxl) Python Import Error (If Installed / If Exists)

preview_player
Показать описание
(We're free online community, meet other makers!)

In this tutorial I'll show you how to install and import openpyxl package in your python program if you get ModuleNotFoundError no module named openpyxl error.

Problem is...you MUST install it with pip by first going into /Scripts folder where you have your python installed, NOT your project folder. Installing it into Scripts folder will make it work even if you're importing it from a file in your projects folder.

If it's still not working, even if openpyxl is installed, you're probably installing it into another environment. PIP and Python commands might not be configured ot run in the same environment. But that's a completely different issue. Your Python installation was messed up and any other module will produce ModuleNotFoundError, if your pip isn't installing it into correct python env.
Рекомендации по теме
Комментарии
Автор

You're a genius!! haha....you help me solve my problem...thanks mate

kofimensah
Автор

For me still not working :-( I tried wehre Python command, it show 3 location in Mac os x, but cant find script directory.

new_story
Автор

Mine is already installed and was running correctly...butwhen i rebooted my laptop...the modules could not be found, even tho they were installed...

MusicWorldDod
Автор

I freaking hate windows 11! Why the F* things have to be manually added to the system variable? Thanks man, life saver!

frankyfantasticmedia
Автор

How can this not be part of the basic package. Python is still so rudimentary and unsophisticated. Plug and play folks. It's why Bill Gates is the world's richest man.

FoobsTon