Installing python3 packages using pip
On Fri, 9 Aug 2019, Chris Angelico wrote:
> There's one other potential trap you MAY fall into, but only if you have
> multiple Python 3s installed (eg 3.7, 3.8, and 3.9).
Not likely. I'm the only one using these hosts and I keep only a single,
current, version of software.
> So to be absolutely completely safe, you can write it like this:
> python3 -m pip install numpy
> If you replace "python3" with "python3.7" or something, it'll still
> work, and whatever you use, it'll target the same Python that you'd
> get when you run a script (so "python3.7 scriptname.py" will see
> things installed with "python3.7 -m pip install pkg").
> Not something to worry about right now, but if you run into trouble,
> this is the longhand that "pip3" is the shorthand for.
Will keep this in mind should the need arrive.