Could not install packages due to an EnvironmentError: [Errno 13] 权限不够

在使用pip3安装selenium时:

1.安装报错信息:Could not install packages due to an EnvironmentError: [Errno 13] 权限不够: ‘/usr/local/lib/python3.5/dist-packages/selenium’

Could not install packages due to an EnvironmentError: [Errno 13] 权限不够_第1张图片2.进行导入模块测试时 import selenium,报错如下:

Could not install packages due to an EnvironmentError: [Errno 13] 权限不够_第2张图片

3.解决办法

根据提示在install后面加上–all就行

Could not install packages due to an EnvironmentError: [Errno 13] 权限不够_第3张图片4.安装成功结果如图:至于为什么,我也不清楚,先空着遇到问题再说赶时间,可以用就行Could not install packages due to an EnvironmentError: [Errno 13] 权限不够_第4张图片

参考文献:
1、https://blog.csdn.net/qq_43192819/article/details/85225127 2019.6.27

你可能感兴趣的:(配置环境,python,linux)