tensorflow版本升级问题解决记录

发布时间:2024-01-19 05:48:28

平台:windows10

tensorflow-gpu-1.6.0升级tensorflow-gpu-1.10.0

?

  • 问题

无法卸载旧版本tensorflow-gpu-1.6.0,提示错误如下:

Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\\Users\\***\\AppData\\Local\\Temp\\pip-uninstall-a92rh00z\\program files (x86)\\microsoft visual studio\\shared\\python36_64\\lib\\site-packages\\tensorflow\\contrib\\tensor_forest\\hybrid\\python\\models\\__pycache__\\stochastic_hard_decisions_to_data_then_nn.cpython-36.pyc'
  • 解决方法

此错误为路径过长产生,可通过修改注册表解决。注册表值如下:

In the latest versions of Windows, this limitation can be expanded to approximately 32,000 characters. Your administrator will need to activate the “Enable Win32 long paths” group policy, or set the registry value to 1.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem@LongPathsEnabled?

?

参考

https://github.com/tensorflow/tensorflow/issues/8785

文章来源:https://blog.csdn.net/Kalenee/article/details/82292239
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。