【发布时间】:2018-05-09 02:48:08
【问题描述】:
我需要在 PyCharm 中创建 Django 项目。我正在使用解释器3.6.3 at /usr/bin/python3.6。创建后,我收到消息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
但是,如果我提供密码并单击身份验证,那么 pip、pip3 和 virtualenv 将被破坏,因为 IDE 正在尝试以 root 身份安装 Django。如何阻止 PyCharm 以 root 身份运行 pip?
【问题讨论】:
标签: python pip pycharm virtualenv pip3