[Python] Import "dateutil" could not be resolved from source

Discussão em 'Python' iniciado por Stack, Agosto 12, 2025.

  1. Stack

    Stack Membro Participativo

    I'm using Visual Studio Code to write a small script and part of it involves using dateutil to parse a string and see if a date exists. Very straight forward, but for some reason, import dateutil just doesn't work.

    I've read around and I've tried every suggestion I've ran into


    • Making sure that pip -V and python -V correspond with the correct version of Python (Pip is v.3.10 and Python is v.3.10.5)


    • Uninstalling and reinstalling dateutil via pip uninstall python-dateutil and pip install python-dateutil. Tried both pip install python-dateutil AND pip3 install python-dateutil after I uninstalled and neither works.


    • Doing all that AND restarting the IDE


    • Double checked to see if pip was added to my PATH variable properly (it is; echo %PATH% shows the correct directories)

    I'm not sure why this is happening or what else I can try to do to resolve it

    Continue reading...

Compartilhe esta Página