1

我在 Python 3.5 上成功安装了 tensorflow。

但是我不能使用张量板,因为它只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'")]
4

1 回答 1

3

如果您遇到权限问题或与其他已安装的库发生冲突,则基于 Virtualenv 的安装是安装 TensorFlow 的最简单方法。

于 2015-12-16T16:05:49.533 回答