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\te
·
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
解决办法
打开注册表
修改
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
中 LongPathsEnabled
值为 1
重启计算机
更多推荐
已为社区贡献12条内容
所有评论(0)