我在安装tensorflow 1.3.0时遇到此错误。在mac的终端
Installing collected packages: tensorflow-tensorboard, backports.weakref, tensorflow
Found existing installation: tensorflow-tensorboard 0.4.0rc3
Uninstalling tensorflow-tensorboard-0.4.0rc3:
Successfully uninstalled tensorflow-tensorboard-0.4.0rc3
Exception:
追踪(最近一次通话): File" /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/basecommand.py" ;,第215行,主要 status = self.run(options,args) 文件" /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/commands/install.py" ;,第342行,在运行中 PREFIX = options.prefix_path, 文件" /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req/req_set.py" ;,第784行,安装中 ** kwargs 文件" /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req/req_install.py" ;,第851行,安装中 self.move_wheel_files(self.source_dir,root = root,prefix = prefix) 文件" /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req/req_install.py" ;,第1064行,在move_wheel_files中 孤立= self.isolated, 文件" /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/wheel.py" ;,第345行,在move_wheel_files中 clobber(source,lib_dir,True) 文件" /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/wheel.py" ;,第323行,在clobber中 shutil.copyfile(srcfile,destfile) 文件" /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py",第97行,在copyfile中 打开(dst,' wb')为fdst: IOError:[Errno 13]权限被拒绝:' /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/backports/weakref.py'