Importing installed package from script raises “AttributeError: module has no attribute” or “ImportError: cannot import name”
I have a script named requests.py that imports the requests package. The script either can’t access attributes from the package, or can’t import them. Why isn’t this working and how do I fix it?