Skip to content Skip to sidebar Skip to footer

Fixing Module Not Found Error When Importing Openpyxl In .py File?

I am trying to use openpyxl with python 3.7, but when starting my .py file in my windows shell I got the ModuleNotFoundError. It is kinda weird as i don't get this error if I write

Solution 1:

I think I found a solution, as I don't get the error anymore.

I added the encoding and language interpreter at the beginning of my .py file

#!/usr/bin/env python# -*- coding: utf-8 -*-from openpyxl import Workbook

Hope it helps :)

Post a Comment for "Fixing Module Not Found Error When Importing Openpyxl In .py File?"