centos7下使用pip3安装包报错ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permi...

使用命令pip3 install pipenv报错如下:

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/python3/lib/python3.7/site-packages/virtualenv.py'

后经查询,在后面加上--user可成功解决

pip3 install pipenv --user

你可能感兴趣的:(centos7下使用pip3安装包报错ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permi...)