我正在尝试在没有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吗?
答案 0 :(得分:2)
正如我在问题的评论中所记载的那样,克隆点并通过python setup.py install --user
安装它很好。