Feb-19-2021, 01:31 PM
Hello Forum,
I would like to see if anyone could confirm which command prompt instructions are correct as far as using pip when installing modules or packages. I am Windows user but often have access to a Mac.
Windows
Check if Python is installed: python --version
If pip is not installed: python -m ensurepip --default-pip
To update pip: python -m pip install -U pip
To install module and package: either pip install <module_name> OR python -m pip install <module_name> (what is the difference?)
Mac or Linux
Check if Python is installed: python3 --version (why python3 instead of just python?)
If pip is not installed: sudo easy_install pip
To update pip: pip install -U pip
To install modules and packages: either pip install <module-name> OR python -m pip install <module_name>
Thanks!
I would like to see if anyone could confirm which command prompt instructions are correct as far as using pip when installing modules or packages. I am Windows user but often have access to a Mac.
Windows
Check if Python is installed: python --version
If pip is not installed: python -m ensurepip --default-pip
To update pip: python -m pip install -U pip
To install module and package: either pip install <module_name> OR python -m pip install <module_name> (what is the difference?)
Mac or Linux
Check if Python is installed: python3 --version (why python3 instead of just python?)
If pip is not installed: sudo easy_install pip
To update pip: pip install -U pip
To install modules and packages: either pip install <module-name> OR python -m pip install <module_name>
Thanks!