出現AttributeError: module 'attr' has no attribute 's'的解決方法

在數據挖掘過程當中,安裝了pandas_profiling包,可是安裝之後就出現了 AttributeError: module ‘attr’ has no attribute ‘s’ 這個錯誤,一開始看網上說是包沒有安裝好,可是我卸載了新安裝的包也沒法正常運行程序,後來經過 在cmd下輸入python pip uninstall attr pip install attrs 才解決了問題。git
相關文章
相關標籤/搜索