RE : Does it is better to '''python3 -m install the_program''' instead '''pip3 install the_program" when it is missing in the downloader primary ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you cameron for your smart answer i was think the same about python3 program,

 

Regards.

 

 

Dorian ROSSE.

 

Envoyé à partir de Courrier pour Windows

 

De : Cameron Simpson
Envoyé le :vendredi 11 février 2022 21:40
À : Community support for Fedora users
Objet :Re: Does it is better to '''python3 -m install the_program''' instead '''pip3 install the_program" when it is missing in the downloader primary ?

 

On 11Feb2022 18:31, Dorian ROSSE <dorianbrice@xxxxxxxxxx> 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@xxxxxxxxxx>
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure

 

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux