用Anconada 安装 TensorFlow 1.7 的几个异常解决办法:EnvironmentError: [Errno 13] ;anEnvironmentError: [WinError 5]

ISSUE 1: notebook 5.4.0 requires ipykernel,which is not installed.

 

这时,你需要以管理员的权限执行语句

C: > pip install notebook

 

ISSUE 2: EnvironmentError: [Errno 13] Permission denied:

 

执行以指令时,又出一个错误,

 

Installing collected packages: ipykernel

Could not install packages due to anEnvironmentError: [Errno 13] Permission denied:'C:\\ProgramData\\Anaconda3\\Lib\\site-packages\\ipykernel_launcher.py'

Consider using the `--user` option or checkthe permissions.

 

这时,你需要把有python的进程关掉,然后再次执行。

 

ISSUE 3 : EnvironmentError: [WinError 5] 拒绝访问

 

在执行以下安装指令

(tensorflow) C:\Users\>pipinstall --upgrade tensorflow-gpu

报红色字体错误:

 

Could not install packages due to anEnvironmentError: [WinError 5] 拒绝访问。:'c:\\programdata\\anaconda3\\lib\\site-packages\\html5lib-1.0.1-py3.6.egg-info\\dependency_links.txt'

Consider using the `--user` option or checkthe permissions.

 

这时, 即使用管理员权限,也依然无法解决上面的错误,

这时,只需要添加 –user,

(tensorflow) C:\Users\>pip install –user --upgrade tensorflow-gpu

 

即可正常运行,

 

Issue 4在以上指令运行成功后,又出现了以下绿色警告提示

 

The script tensorboard.exe is installed in 'C:\Users\\AppData\Roaming\Python\Python36\Scripts'which is not on PATH.

  Consider adding thisdirectory to PATH or, if you prefer to suppress this warning, use--no-warn-script-location.

The scripts freeze_graph.exe, saved_model_cli.exe, tensorboard.exe,toco.exe and toco_from_protos.exe are installed in 'C:\Users\\AppData\Roaming\Python\Python36\Scripts' which is not on PATH.

  Consider adding thisdirectory to PATH or, if you prefer to suppress this warning, use--no-warn-script-location.

以上绿色提示建议对以上几个执行程序设置环境路径设置,而这几个执行程序都在AppData这个隐藏路径下,需要手动在文件路径栏输入回车

你可能感兴趣的:(Tensorflow)