ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: ‘c:\\users

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'c:\users\xiahuadong\desktop\xiahuadongcode\algorithm_ai\models-research-deep_speech\venv\Lib\site-packages\tensorflow\include\external\llvm-project\mlir\_virtual_includes\LinalgStructuredInterfacesIncGen\mlir\Dialect\Linalg\IR\LinalgStructuredOpsInterfaces.cpp.inc’问题解决:

问题

因为Python Page模块文件的文件路径太长,如果超过了260个字符这文件不能被创建成功。所以需要解决Windows中对长文件名的限制问题。通过修改注册表中 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem 的LongPathsEnabled 值由0改为1

解决办法

打开注册表

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: ‘c:\\users_第1张图片

修改

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystemLongPathsEnabled值为 1
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: ‘c:\\users_第2张图片

重启计算机

你可能感兴趣的:(ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: ‘c:\\users)