今天在安装python第三方库时,提示pip需要升级,没有多想直接升级,结果报错: 1 ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问.: 'd:\\python\\scripts\\pip.exe' 2 Consider using the `--user` option or check the permissions. 一.报错处理 从报错信息看,大概是权限问题,于是使用管理员身份运行CMD,再次…