When running a python program, there may be such an error: AttributeError: module 'xxx' has no attribute 'xxx', such as:
In my study, there are two ways to solve this error
- Install the module manually
- Checking the file name
This method may seem silly, but it is a common mistake made by newbies, because the name of the file is the same as the name of the module to be used:
just change the file name.