Environmental Error occurs while installing Tensorflow

后端 未结 2 1971
情深已故
情深已故 2021-01-27 11:20

When installing Tensorflow it said I was missing a file but i dont know how to fix it and or get that file

I have tried re-downloading python but I am still missing the

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-27 11:56

    This is a typical Windows problem with long file paths. Disable the MAX_PATH limitation; the instruction for that can e.g. be found here:

    3.1.2. Removing the MAX_PATH Limitation

    Windows historically has limited path lengths to 260 characters. This meant that paths longer than this would not resolve and errors would result.

    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 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem@LongPathsEnabled to 1.

    After that, reboot and retry the installation.

提交回复
热议问题