How can I fix a module not found error with natsort?

2.5k Views Asked by At

I am attempting to install a few modules to use with openpyxl. Among those modules is natsort. I have used pip install natsort in my command prompt to install it, which the command prompt says was completed successfully.

When testing to see that all of the modules I want to use were installed properly:

from openpyxl import Workbook
from openpyxl.drawing.image import Image
from openpyxl.utils import get_column_letter
import glob
import os
from natsort import natsorted

I get the error:

Traceback (most recent call last):
  File "c:\Users\wes\Desktop\PhotoLog\PhotoLog_script.py", line 6, in <module>
    from natsort import natsorted
ModuleNotFoundError: No module named 'natsort'

I have restarted my machine a few times now and attempted to reinstall natsort using pip, which it says the requirements are already satisfied.

Any suggestions on how I can go about fixing this?

0

There are 0 best solutions below