[英]Installing tensorflow causes an error on OS X?
I install the tensorflow on Python 3.5 successfully. 我成功地在Python 3.5上安装了tensorflow。
But I can't use the tensorboard due to the BaseHTTPServer.py
which just support Python 2.x, then I install tensorflow on Python 2.7 it causes these problems: 但由于
BaseHTTPServer.py
只支持Python 2.x,我无法使用张量板,然后我在Python 2.7上安装tensorflow会导致这些问题:
Error: [('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py', '/tmp/pip-K0gFNn-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py',
"[Errno 1] Operation not permitted: '/tmp/pip-K0gFNn-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.pyc', '/tmp/pip-K0gFNn-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.pyc',
"[Errno 1] Operation not permitted: '/tmp/pip-K0gFNn-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py', '/tmp/pip-K0gFNn-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py',
"[Errno 1] Operation not permitted: '/tmp/pip-K0gFNn-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc', '/tmp/pip-K0gFNn-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc',
"[Errno 1] Operation not permitted: '/tmp/pip-K0gFNn-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib', '/tmp/pip-K0gFNn-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib',
"[Errno 1] Operation not permitted: '/tmp/pip-K0gFNn-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib'")]
如果您遇到权限问题或与其他已安装的库发生冲突,则基于Virtualenv的安装是安装 TensorFlow的最简单方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.