当前位置:   article > 正文

Windows11安装python模块transformers报错Long Path处理_this error might have occurred since this system d

this error might have occurred since this system does not have windows long

Windows11安装python模块transformers报错,报错信息如下

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\\Users\\27467\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python311\\site-packages\\transformers\\models\\deprecated\\trajectory_transformer\\convert_trajectory_transformer_original_pytorch_checkpoint_to_pytorch.py'
HINT: This error might have occurred since this system does not have Windows Long Path support enabled. You can find information on how to enable this at https://pip.pypa.io/warnings/enable-long-paths
问题原因:要启用Windows长路径支持 
Windows11安装python模块transformers报错Long Path处理 

win+r输入打开注册表

regedit 
修改以下指为1

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
"LongPathsEnabled"=1

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/654904
推荐阅读
相关标签
  

闽ICP备14008679号