Error report screenshot:
this is what I wrote:
after modification:
packaging completed:
Tag Archives: Solutions to error reporting
[error] attributeerror: module ‘SIP’ has no attribute ‘setapi‘
Problem Description:
Import bar_ chart_ Race report error
Recently, I was importing bar_ chart_ Error: attributeerror: module 'SIP' has no attribute 'setapi'
imported package:
import bar_chart_race as bcr
Just run the imported statement and an error will be reported: attributeerror: module 'SIP' has no attribute 'setapi'
terms of settlement:
Finally, I found that the reason for this error is that the version of Matplotlib library is too high. The version I reported is 3.3.2. If I downgrade it to 3.3.0, there will be no problem;
Uninstall first: PIP install Matplotlib code>
Re install: PIP install Matplotlib = = 3.3.0 code>
Problem solving!!