无法安装 nb-cli,NoneBot2

换源安装以后提示这个ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'd:\xadi\scripts\pip.exe'
Consider using the --user option or check the permissions.

没有权限
解决办法:

  • 使用管理员权限运行命令提示符或PowerShell:右键单击命令提示符或PowerShell图标,然后选择"以管理员身份运行"
  • 使用--user选项安装:将--user选项添加到安装命令中,例如pip install nb-cli --user
  • 更改安装目录:可以尝试将安装目录更改为有写入权限的位置

没有权限,使用管理员命令行界面进行安装