平台: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
参考
在Windows 10平台上从tensorflow-gpu-1.6.0升级到1.10.0时遇到卸载旧版本的问题。错误提示无法找到指定文件。原因是路径过长导致。解决方法是通过修改注册表来扩展路径限制。
712

被折叠的 条评论
为什么被折叠?



