4

I am trying to install pip without sudo. Reading the Install Docs, it appears to be possible to use --user to have it being installed in my home directory. After uninstalling pip from the global scope I tried python get-pip.py --user and obtain the following error:
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/wheel-0.29.0.dist-info'

Checking the Install Docs I found the following notice:
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.

Can I install pip into my home with the casual Ubuntu apt-get python? Or do I also need to build python locally?

1
  • 1
    Install from sources. Clone the repo and run python setup.py install --user.
    – phd
    Commented Jul 4, 2017 at 10:00

1 Answer 1

2

As phd mentoined in the comment of my question, cloning pip and installing it via python setup.py install --user worked out fine.

1
  • This may have been an Ubuntu issue (Python version or so), since under arch everything worked out fine right from the beginning. Commented Jul 10, 2018 at 7:39

Not the answer you're looking for? Browse other questions tagged or ask your own question.