On 11Feb2022 18:31, Dorian ROSSE dorianbrice@hotmail.fr wrote:
Does it is better to '''python3 -m install the_program''' instead '''pip3 install the_program" when it is missing in the downloader primary ?
That would be:
python3 -m pip3 install the_program
The version with `python3` is generally better because it ensures that the install is associated with your `python3` command - that way when you run a programme with `python3` the module is available.
This is because a module is installed against a particular version of Python, and it is possible the the `pip3` you run is not associated with the same Python as `python3` in complicated setups.
You will of course want to adjust `python3` to be whatever Python executable you're working with, but in the basic case that is just `python3` as you have in your example.
Cheers, Cameron Simpson cs@cskk.id.au