module 'io' has no attribute 'OpenWrapper'
【摘要】
D:\Users\Administrator\Miniconda3\envs\python3\python.exe E:/tensor/mx-rcnn-master/demo.py Fatal Python error: Py_Initialize: can't initialize sys standard streams AttributeError: module...
D:\Users\Administrator\Miniconda3\envs\python3\python.exe E:/tensor/mx-rcnn-master/demo.py
Fatal Python error: Py_Initialize: can't initialize sys standard streams
AttributeError: module 'io' has no attribute 'OpenWrapper'
Current thread 0x00004114 (most recent call first):
原因未知,换成python2,就不报错了
用命令行,python3的环境,也不报错
不知道为什么,pycharm+python3的环境,就报错了
我把pycharm重装了,也报错
解决方法:新建一个python3的项目,print(111)正常,那么问题出在此项目中,
继续排查,项目中有个目录rcnn,里面有个包名叫io,里面有__init__.py文件,估计把系统的io给覆盖了,io中没有OpenWrapper这个属性
临时解决办法,把项目中的io包去掉,能运行了。
长期解决方法还没找到
文章来源: blog.csdn.net,作者:网奇,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/jacke121/article/details/78345725
【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)