安装pip没有root但是使用系统的python

时间:2017-07-04 07:38:25

标签: python pip

我正在尝试在没有pip的情况下安装sudo。 阅读Install Docs,似乎可以使用--user将其安装在我的home目录中。 从全局范围卸载pip后,我尝试python get-pip.py --user并获得以下错误:
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/wheel-0.29.0.dist-info'

检查Install Docs我发现了以下通知:
Be cautious if you're using a Python install that's managed by your operating system or another package manager. get-pip.py does not coordinate with those tools, and may leave your system in an inconsistent state.

我可以使用随意的Ubuntu apt-get python将pip安装到我的家中吗?或者我还需要在本地构建python吗?

1 个答案:

答案 0 :(得分:2)

正如我在问题的评论中所记载的那样,克隆点并通过python setup.py install --user安装它很好。