ValueError: 'format' in __slots__ conflicts with class variable
我是在安裝pip install progressbar 的時候出現這個異常的,這個異常最後指向的是我的安裝路徑下的lib\abc.py文件,這是python的源碼,應該不會出什麼問題:
File "c:\**\**\**\python\python36-32\lib\abc.py", line 133, in __new__
cls = super().__new__(mcls, name, bases, namespace, **kwargs)
查找網上的相關文章,有說這個是因爲python版本的問題,今天在網上搜索了一下progressbar,看到http://blog.csdn.net/u012436149/article/details/73173309 這篇博客上寫的:pip install progressbar2
嘗試安裝後,安裝成功!
從這裏可以看出如果再出現類似的狀況,可能是因爲安裝的模塊和版本與當前使用的python版本不對應,解決問題方向應該是查找對應的模塊版本及正確的模塊安裝名稱!