tensorflow版本升级问题解决记录

平台: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

你可能感兴趣的:(Tensorflow)