【发布时间】:2017-08-29 06:58:43
【问题描述】:
提前感谢您的帮助,我知道我在编程方面的经验非常有限,所以请客气并采取周到的方法('而不是你没有做这件事'的方法)。 我正在尝试安装张量流。这是我第一次使用 python(我安装了 Anaconda 并让 iJupyter Notebooks 工作)。我确实设法让 tensorflow 在 R 中运行(我有点精通)。但是,当使用 Anaconda 说明安装 tensorflow 时,出现此错误:
Exception:Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install
**kwargs
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/wheel.py", line 329, in clobber
os.utime(destfile, (st.st_atime, st.st_mtime))
OSError: [Errno 1] Operation not permitted: '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/easy_install.py'
我找到了一些关于 pip 安装的建议,但由于我使用了 conda 选项,因此不知道这些建议是否相关。 蟒蛇 2.7 MacOS Sierra 10.12.6 // MacBook Pro 15 英寸 如果您对新手有回应-那就太好了。 谢谢。
【问题讨论】:
标签: python tensorflow macos-sierra