pip install报错,“Consider using the `--user` option or check the permissions”
发表于:2022-09-13 |

在使用pip install时,提示pip的版本过低,需要更新的时候提示:

WARNING: You are using pip version 19.3.1; however, version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

按照提示输入:

python -m pip install --upgrade pip

但是报错:Consider using the `--user` option or check the permissions.

换成下面的命令完美解决

python -m pip install --upgrade pip --user
上一篇:
ModuleNotFoundError: No module named ‘Cython‘
下一篇:
docker 批量启动容器