我需要在 PyCharm 中创建 Django 项目。我正在使用解释器3.6.3 at /usr/bin/python3.6
。创建它后,我收到了 message Authentication is needed to run /usr/bin/python3.6 as the superuser
。我点击了取消,我得到了:
Executed command: pip install Django
Error occurred: Non-zero exit code (126)
Proposed solution:
Try to run this command from the system terminal. Make sure that you use correct version of 'pip' installed for your Python interpreter located at '/usr/bin/python3.6'.
Command output:
Error executing command as another user: Request dismissed
但是,如果我提供密码并单击 Authenticate,则 pip、pip3 和 virtualenv 将被破坏,因为 IDE 正在尝试以 root 身份安装 Django。如何停止 PyCharm 以 root 身份运行 pip?