Skip to content
Advertisement

Tag: import

Import a single file from another directory

I’m kind of new with python and there is something troubling me. I’m using pandas to read an excel file. All works well if I have the excel in the same directory as my .py file. What I want to know is what is the best way to get a file that is in a completely different path. I’ve searched

Why cannot I import selenium?

Why can’t I import selenium? My text is looking like this in Visual Studio code: I have not always had this problem. The problem occurred after I switched to Windows 11 where the c-drive was deleted. Do someone out there know how to fix it? I’m using Windows 11. Answer Try C:> py -m ensurepip –upgrade If you install Python

Advertisement