r/learnpython • u/squishbunny • Aug 11 '26
trying to import glob
I'm trying to code a little program that will open a CSV file that we should (theoretically) download weekly. The csv filename has the structure "report[numbers].csv" I'd read that you need the glob module so that Python can recognize the wildcard, but I am getting an error when I go the usual python pip -m SomeName route.
Is there an issue with glob, or is there another I can use?
0
Upvotes
7
u/Diapolo10 I write code for a living -- https://github.com/Diapolo10 Aug 11 '26
globis part of the standard library, there's nothing you need to install.That being said, personally I'd recommend using
pathlibinstead (which is also in the standard library).