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
andpython -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
andpip install python-dateutil
. Tried bothpip install python-dateutil
ANDpip3 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