pip报错 ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory

使用pip安装某些包时,会出现以下报错

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\\Users\\63191\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python310\\site-packages\\caffe2\\python\\serialized_test\\data\\operator_test\\collect_and_distribute_fpn_rpn_proposals_op_test.test_collect_and_dist.zip'
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  

要修改注册表

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystemLongPathsEnabled

值由0变1 

你可能感兴趣的:(Python,pip,python,windows)