tensorflow - 由于环境错误 : [WinError 5] Access is denied:,无法安装软件包

标签 tensorflow

我有 Windows 10。我已完成 Tensorflow 安装。有用。它说“你好 Tensorflow!”。但这一切都在它面前:

2018-08-18 18:16:01.500579: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 
2018-08-18 18:16:01.769002: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:1405] Found device 0 with properties: name: GeForce GTX 950 major: 5 minor: 2 memoryClockRate(GHz): 1.3545 pciBusID: 0000:01:00.0 totalMemory: 2.00GiB freeMemory: 1.64GiB 
2018-08-18 18:16:01.774030: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:1484] Adding visible gpu devices: 0 
2018-08-18 18:16:02.095489: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:965] Device interconnect StreamExecutor with strength 1 edge matrix: 
2018-08-18 18:16:02.099093: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:971] 0 
2018-08-18 18:16:02.100631: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:984] 0: N 
2018-08-18 18:16:02.102156: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:1097] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 1401 MB memory) -> physical GPU (device: 0, name: GeForce GTX 950, pci bus id: 0000:01:00.0, compute capability: 5.2) Hello Tensorflow!

Process returned 0 (0x0) execution time : 2.327 s Press any key to continue

当我在 cmb 中输入 pip3 install --upgrade tensorflow-gpu 时,无论是管理还是正常,我都会得到以下信息:

Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\\users\\dylan\\appdata\\local\\programs\\python\\python35\\Lib\\site-packages\\numpy\\.libs\\libopenblas.BNVRK7633HSX7YVO2TADGR4A5KEKXJAW.gfortran-win_amd64.dll'
Consider using the `--user` option or check the permissions.

最佳答案

如果您不想更改权限,只需键入要使用用户权限执行的命令即可:

pip3 install --upgrade tensorflow-gpu --user

关于tensorflow - 由于环境错误 : [WinError 5] Access is denied:,无法安装软件包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51912999/

相关文章:

python-3.x - 使用tensorflow在CNN中出现尺寸错误

tensorflow - 保存在TensorFlow中后生成的.index和.data-00000-of-00001文件代表什么?

tensorflow - 使用 tensorflow 模型在 Google Cloud 中进行预测失败

python - 如何将 numpy 数组列表放入 LSTM 神经网络?

Tensorflow - 损失开始很高并且不会减少

tensorflow - 使用 keras 创建减少 channel 大小的自定义激活时出错

python - 张量板显示语法错误 : can't assign to operator

python - 失败前提条件错误: Table not initialized

python - ModuleNotFoundError : No module named 'tf_slim' despite installing

python - 用于图像特征提取的 tensorflow 多重处理