gpt4 book ai didi

python - 在 OS X 上安装 TensorFlow 会导致错误?

转载 作者:行者123 更新时间:2023-11-30 23:02:50 25 4
gpt4 key购买 nike

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

但是我无法使用tensorboard,因为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-based installation是安装 TensorFlow 的最简单方法。

关于python - 在 OS X 上安装 TensorFlow 会导致错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34312889/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com