首页 > 解决方案 > 使用 pip3 install 命令的权限被拒绝问题

问题描述

我是 Github 的新手,我尝试使用 Sherlock,使用代码安装要求

python3 -m pip install -r requirements.txt

但它说permission denied,所以我尝试关闭 UAC 并git bash以管理员身份打开并使用该--user命令,但它仍然无法正常工作。

我正在使用 Windows 10,我看到:

git bash 错误

标签: python-3.xpipgit-bashpermission-denied

解决方案


首先考虑python3在minTTY环境中不起作用

所以试试吧:

winpty python.exe -m pip install -r requirements.txt

您可以在此处设置别名~/.bashrc


推荐阅读