当前位置: 代码迷 >> 综合 >> 技术问题解决: ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied:
  详细解决方案

技术问题解决: ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied:

热度:9   发布时间:2023-12-14 22:17:11.0

在我用pip来安装scikit-learn时(pip install scikit-learn==0.23.2), 出现了如下错误:

完整的错误输出信息如下:

ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'C:\\Users\\author\\Anaconda3\\envs\\seg_deploy\\Lib\\site-packages\\sklearn\\svm\\_libsvm_sparse.cp36-win_amd64.pyd'
Consider using the `--user` option or check the permissions.

解决办法如下:  pip install --user scikit-learn==0.23.2

有可能你需要删除C:\\Users\\author\\Anaconda3\\envs\\seg_deploy\\Lib\\site-packages 下的整个sklearn文件夹。

  相关解决方案