3

I have installed python3.8 and have found no reference on how to get pip3 to talk to it on ubuntu. On macos I had explicitly installed pip3.8 and that has been crucial to getting all packages lined up correctly.

pip3 was installed as follows based on numerous recommendations:

    sudo apt-get install python3-pip

But it is pointing to python3.6:

$ pip3 -V
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)

Please do not suggest anaconda or venv: there are reasons we are using directly installed python3.8.

2

1 Answer 1

10

The best option is to use python3 -m pip to run pip with a specific python version.

The full docs on this are here: https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/

1
  • 1
    Funny thing there's a pip3.8 for macOS : I brew installed it. But not for ubuntu: so I needed to do the python3 -m pip for the latter. Commented Apr 2, 2020 at 12:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .