Configuring pip3 - How to reverse action of `pypy3 -m ensurepip` and get back pip3 for classical python3?

263 Views Asked by At

I wanted to install a package to be used with pypy3. I blindly followed some instructions (which I don't remember now, it was decent time ago), most likely using pypy3 -m ensurepip script to setup pip for pypy3.

Okey, now running pip3 install xyz installs xyz for pypy3 (and not python3). But I want to be back and use pip3 (or any other command) for the normal cpython python3.

Running pip3 --version yields pip 21.1.2 from /home/zaabson/.local/lib/pypy3.6/site-packages/pip (python 3.6). And which pip3 == /home/zaabson/.local/bin/pip3 so I belive it's still the same pip3 just configured for pypy3 and I don't know what to change to fully reconfigure it.

Best would be to be able to switch between installing for python3 and pypy3, but I want to stick to global installations as always and not bother with virtualenv's. Also I'm on ubuntu so removing python is out of question, as the whole system depends on it.

Also wishfully running python3 -m ensurepip(3) gets /usr/bin/python3 No module named ensurepip and how can I get it?

Thanks in advance

0

There are 0 best solutions below