Unable to import Tensorflow “No module named copyreg”
2016-05-20 20:32
696 查看
http://stackoverflow.com/questions/33656551/unable-to-import-tensorflow-no-module-named-copyreg
Another simple way I tried to fix this is to edit the source code and
change the line
Of course you might need to change the permission of this read-only file in order to modify it.
Another simple way I tried to fix this is to edit the source code and
python_message.pyand
change the line
import six.moves.copyreg as copyreginto
from six.moves import copyreg.
Of course you might need to change the permission of this read-only file in order to modify it.
$ python >>> import tensorflow as tf Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Python/2.7/site-packages/tensorflow/__init__.py", line 4, in <module> from tensorflow.python import * File "/Library/Python/2.7/site-packages/tensorflow/python/__init__.py", line 13, in <module> from tensorflow.core.framework.graph_pb2 import * File "/Library/Python/2.7/site-packages/tensorflow/core/framework/graph_pb2.py", line 8, in <module> from google.protobuf import reflection as _reflection File "/Library/Python/2.7/site-packages/google/protobuf/reflection.py", line 58, in <module> from google.protobuf.internal import python_message as message_impl File "/Library/Python/2.7/site-packages/google/protobuf/internal/python_message.py", line 59, in <module> import six.moves.copyreg as copyreg ImportError: No module named copyreg
相关文章推荐
- CentOS(5.8/6.4)linux生产环境若干优化实战
- 坑爹的一天——关于配置samba服务器(1)
- Apache Cordova development lands on Visual Studio Code
- jetson tk1 上面如何编译opencv程序
- Apache Storm内部原理分析
- Linux源码环境下编译apk实践
- 从开始到结束,手把手教你使用busybox构建类嵌入式Linux系统
- Linux_2_Navigation
- Linux内核Makefile分析
- 执行shell脚本的几种方法及区别
- Linux文件权限
- launchOptions的key
- selinux禁用后系统无法正常启动的问题
- SHELL中计算时间差方法
- Linux的lvm管理:修改LV大小
- @安装Nginx创建错误
- 《Linux及安全》实践2
- Linux中常见find命令的使用
- shell小记-检查一个目录是够为空
- eclipse内存设置,tomcat内存设置,查看内存大小