遇到的错误如下图所示。很奇怪换其他的虚拟环境不行,当前的代码也没有问题。
Fatal Python error: init_sys_streams: can't initialize sys standard streams
Traceback (most recent call last):
File "D:\anaconda\envs\torchEnv\lib\io.py", line 72, in <module>
AttributeError: module 'abc' has no attribute 'ABCMeta'
解决办法:
在当前的项目下命名了一个abc.py文件,导致python导包错误,修改abc.py的名称就可以。(别乱命名)