Anaconda:Defaulting to user installation because normal site-packages is not writeable 安装第三方包报错

Anaconda安装的第三方包,具体在安装的位置的site-packages文件夹下面

Anaconda:Defaulting to user installation because normal site-packages is not writeable 安装第三方包报错_第1张图片

 运行 prompt

 Anaconda:Defaulting to user installation because normal site-packages is not writeable 安装第三方包报错_第2张图片

 pip  install   parametered  

出现报错: 

Anaconda:Defaulting to user installation because normal site-packages is not writeable 安装第三方包报错_第3张图片

anconda3   下面的 文件夹权限为只读,修改Lib  Libary  share   Scripts  只读勾选去掉

Anaconda:Defaulting to user installation because normal site-packages is not writeable 安装第三方包报错_第4张图片

Anaconda:Defaulting to user installation because normal site-packages is not writeable 安装第三方包报错_第5张图片

 Anaconda:Defaulting to user installation because normal site-packages is not writeable 安装第三方包报错_第6张图片

将pip下载路径改变到 anaconda文件夹下

1.打开cmd,输入python -m site -help

Anaconda:Defaulting to user installation because normal site-packages is not writeable 安装第三方包报错_第7张图片

 Anaconda:Defaulting to user installation because normal site-packages is not writeable 安装第三方包报错_第8张图片

搜索 USER_SITE修改   site.py   使用记事本搜索功能找到如图所示,一开始的路径为 None,要把路径修改为anaconda路径下的文件夹

Anaconda:Defaulting to user installation because normal site-packages is not writeable 安装第三方包报错_第9张图片 要引号+ 双斜线  \a 会认为特殊字符

USER_SITE = "D:\\software\\python3\\anconda3\\Lib\\site-packages"
USER_BASE = "D:\\software\\python3\\anconda3\\Scripts"

Anaconda:Defaulting to user installation because normal site-packages is not writeable 安装第三方包报错_第10张图片

Anaconda:Defaulting to user installation because normal site-packages is not writeable 安装第三方包报错_第11张图片

保存后,最后在cmd中输入python -m site

Anaconda:Defaulting to user installation because normal site-packages is not writeable 安装第三方包报错_第12张图片

Anaconda:Defaulting to user installation because normal site-packages is not writeable 安装第三方包报错_第13张图片

pycharm terminal  测试:

Anaconda:Defaulting to user installation because normal site-packages is not writeable 安装第三方包报错_第14张图片

 以管理员身份打开:重新执行  pip 成功

Anaconda:Defaulting to user installation because normal site-packages is not writeable 安装第三方包报错_第15张图片

Anaconda:Defaulting to user installation because normal site-packages is not writeable 安装第三方包报错_第16张图片

 查看对应的文件

 Anaconda:Defaulting to user installation because normal site-packages is not writeable 安装第三方包报错_第17张图片

 

你可能感兴趣的:(python,开发语言)