成功解决File amp;quot;f:\program files\python\python36\lib\re.pyamp;quot;, line 142, in amp;lt;modul
生活随笔
收集整理的這篇文章主要介紹了
成功解决File amp;quot;f:\program files\python\python36\lib\re.pyamp;quot;, line 142, in amp;lt;modul
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
成功解決File "f:\program files\python\python36\lib\re.py", line 142, in <modul
?
?
目錄
解決問題
解決思路
解決方法
?
?
解決問題
? File "f:\program files\python\python36\lib\re.py", line 142, in <module>
? ? class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
?
?
解決思路
屬性錯誤:模塊“enum”沒有屬性“intflag”
?
?
?
?
解決方法
很可能是因為設置了PYTHONPATH環境變量。這將導致無法調用正常的自己的庫,因此建議在打開python前執行 ?unset PYTHONPATH
?
?
?
?
?
總結
以上是生活随笔為你收集整理的成功解决File amp;quot;f:\program files\python\python36\lib\re.pyamp;quot;, line 142, in amp;lt;modul的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Py之Pyinstaller:Pytho
- 下一篇: SQL Server基础知识概念要点详细