Windows下安装 tensorflow-gpu 遇到Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问

安装tensorflow-gpu是个很麻烦的事情,最近找到一片文章,里面教程很好,这里附上链接:https://blog.csdn.net/weixin_39290638/article/details/80045236

安装好cuda和cudnn后

在pip 安装tensorflow时:

情况如下:

显示:Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问

解决方法:在install后面加上 --user即可

Windows下安装 tensorflow-gpu 遇到Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问_第1张图片

你可能感兴趣的:(Windows下安装 tensorflow-gpu 遇到Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问)