module 'io' has no attribute 'OpenWrapper'
来源:互联网 发布:淘宝有暗号 编辑:程序博客网 时间:2024/06/05 06:45
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包去掉,能运行了。
长期解决方法还没找到
阅读全文
0 0
- module 'io' has no attribute 'OpenWrapper'
- AttributeError: 'module' object has no attribute 'getpass'
- 'module' object has no attribute 'basicConfig'
- AttributeError: 'module' object has no attribute 'Serial'
- 'module' object has no attribute 'rindex'
- AttributeError: 'module' object has no attribute(转)
- AttributeError: 'module' object has no attribute 'randint'
- AttributeError: 'module' object has no attribute 'HAVE_DECL_MPZ_POWM_SEC'
- Django: 'module' object has no attribute 'index'
- AttributeError: 'module' object has no attribute 'Serial'
- AttributeError: 'module' object has no attribute 'LabelMap'
- python-module 'pymysql' has no attribute 'connect'
- AttributeError: 'module' object has no attribute 'XXX'
- AttributeError: 'module' object has no attribute 'urlopen'
- AttributeError:'module' object has no attribute 'classify'
- AttributeError: ‘module’ object has no attribute’xxx’
- AttributeError: ‘module’ object has no attribute’ 问题
- AttributeError: 'module' object has no attribute 'VideoWriter_fourcc'
- 被嵌套的子类
- 1章 简介
- 基于STM32F429的SDRAM使用
- 凸优化中的基本概念
- jq stop(停止动画)
- module 'io' has no attribute 'OpenWrapper'
- MapReduce--9--求变动版本
- 九九乘法表
- jQuery 元素的追加
- 用代码解决定制版本配置的方法
- 242. Valid Anagram
- 使用IDA调试apk的so的步骤
- 3.2
- Java基础之流程控制