Python is installed to all of our computers because it is useful framework for a variety of things .

To use the python interface from terminal just type python .

to check you python version just type python --version

to run a python script you need to type in the form :

./python_script_name.py

but very importantly it has to be executable first

chmod +x python_script_name.py

I hope it helps !

Answer from billybadass on askubuntu.com
๐ŸŒ
pip
pip.pypa.io โ€บ en โ€บ stable โ€บ installation
Installation - pip documentation v26.0.1
Python comes with an ensurepip module[1], which can install pip in a Python environment.
Discussions

python - How to run Pip commands from CMD - Stack Overflow
-1 Have problem to run Python command installed by pip in macOS Terminal More on stackoverflow.com
๐ŸŒ stackoverflow.com
How to...pip install?
I'm going to make the assumption that you don't use a virtual environment for this project. Try entering this into the VS Code terminal: py -m pip install requests This should always work on Windows as long as you have Python installed. Just make sure to not enter it into the Python REPL (starting with >>>) as this is not Python code. More on reddit.com
๐ŸŒ r/learnpython
21
7
April 5, 2024
cmd - How to install Python using Windows Command Prompt - Stack Overflow
Is it possible to install Python from cmd on Windows? If so, how to do it? More on stackoverflow.com
๐ŸŒ stackoverflow.com
python - How do I install pip on macOS or OS X? - Stack Overflow
This worked for me instead. curl ... sudo python get-pip.py 2018-04-22T01:55:17.54Z+00:00 ... Another GIF image you said? Here you go! ... The macOS comes with the Python environment installed. But to make sure that you have Python installed open the terminal and run the following ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
Python
docs.python.org โ€บ 3 โ€บ installing โ€บ index.html
Installing Python Modules โ€” Python 3.14.3 documentation
When using comparator operators such as >, < or some other special character which get interpreted by shell, the package name and the version should be enclosed within double quotes: python -m pip install SomePackage==1.0.4 # specific version ...
๐ŸŒ
Python Packaging
packaging.python.org โ€บ tutorials โ€บ installing-packages
Installing Packages โ€” Python Packaging User Guide
Itโ€™s recommended to write ... Python installation that the python command refers to). ... Due to the way most Linux distributions are handling the Python 3 migration, Linux users using the system Python without creating a virtual environment first should replace the python command in this tutorial with python3 and the python -m pip command with ...
๐ŸŒ
Visual Studio Code
code.visualstudio.com โ€บ docs โ€บ python โ€บ python-tutorial
Getting Started with Python in VS Code
November 3, 2021 - To install the required packages ... Anaconda distributions because they include matplotlib already. # macOS python3 -m pip install numpy # Windows (may require elevation) python -m pip install numpy # Linux (Debian) apt-get ...
๐ŸŒ
Real Python
realpython.com โ€บ installing-python
How to Install Python on Your System: A Guide โ€“ Real Python
February 18, 2026 - The --enable-optimizations flag ... twenty or thirty minutes to the compilation time. The --with-ensurepip=install flag will install pip bundled with this installation....
Find elsewhere
๐ŸŒ
Python Packaging
packaging.python.org โ€บ installing
Installing Packages - Python Packaging User Guide
July 5, 2023 - Itโ€™s recommended to write ... Python installation that the python command refers to). ... Due to the way most Linux distributions are handling the Python 3 migration, Linux users using the system Python without creating a virtual environment first should replace the python command in this tutorial with python3 and the python -m pip command with ...
๐ŸŒ
Python Land
python.land โ€บ home โ€บ virtual environments and package management โ€บ pip install: how to install and remove python packages
Pip Install: How To Install and Remove Python Packages โ€ข Python Land Tutorial
September 16, 2025 - You can install pip with the apt package manager on Debian, Ubuntu, Linux Mint, and other Debian derivatives. This is the most recommended method and ensures your system stays consistent. $ sudo apt install python3-pipCode language: Bash (bash)
๐ŸŒ
MakeUseOf
makeuseof.com โ€บ home โ€บ programming โ€บ how to install python pip on windows, mac, and linux
How to Install Python PIP on Windows, Mac, and Linux
July 8, 2022 - To find out which Python version you have, open the Terminal and type in: ... If you have Python installed on your machine, then one of these commands should respond with a version number. If you want to install the Python distribution on Linux, the built-in package manager is probably the best method. ... Once you have a base installation of a Python setup, donโ€™t start installing packages directly into it with PIP.
๐ŸŒ
GitHub
github.com โ€บ PackeTsar โ€บ Install-Python
GitHub - PackeTsar/Install-Python: Quick Guide for Installing Python on Common Operating Systems ยท GitHub
Open your Terminal application and run the command python3 to enter the Python interactive command line. Issue the command quit() to exit. Also make sure PIP (the Python package manager) is installed by issuing the command pip3 -V.
Starred by 2 users
Forked by 7 users
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ installation guide โ€บ how-to-install-pip-on-windows
How to Install PIP on Windows - GeeksforGeeks
February 16, 2026 - To ensure proper installation and ... pip Python: ... To install PIP, you'll need the get-pip.py script. Let's understand this in the below-mentioned detailed steps: Curl is a UNIX command that is used to send the PUT, GET, and POST requests ...
๐ŸŒ
Reddit
reddit.com โ€บ r/learnpython โ€บ how to...pip install?
r/learnpython on Reddit: How to...pip install?
April 5, 2024 -

Never thought I'd need to ask this question as a CCNA and Network+ holder, I guess Python has decided to make the simple act of a pip install THIS difficult, wow! I have Python installed as well as Virtual Studio Code. I try this from command prompt

pip3 install requests
File "<stdin>", line 1
pip3 install requests
^^^^^^^

And that's all I get, again and again and again. So I try this in the Visual Studio terminal:

pip3 : The term 'pip3' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the 

spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

  • pip3 install requests

  •   + CategoryInfo          : ObjectNotFound: (pip3:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
      
    

Mind blowing stuff here. I JUST want to be able to pip install. I've also tried just using "pip" and leaving out the 3. What mountains must I move to perform such a basic task? I

๐ŸŒ
PhoenixNAP
phoenixnap.com โ€บ home โ€บ kb โ€บ devops and development โ€บ how to install pip on windows
How to Install pip on Windows
March 24, 2025 - If not, the easiest method to get it is with Windows Package Manager. To install Python with winget, run: winget install Python.Python. Python's latest versions include pip, but some installations may not.
๐ŸŒ
PyPI
pypi.org โ€บ project โ€บ pip
pip ยท PyPI
The PyPA recommended tool for installing Python packages. ... pip is the package installer for Python.
      ยป pip install pip
    
Published ย  Feb 05, 2026
Version ย  26.0.1
Homepage ย  https://pip.pypa.io/
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ python_pip.asp
Python PIP
Navigate your command line to the location of Python's script directory, and type the following: ... If you do not have PIP installed, you can download and install it from this page: https://pypi.org/project/pip/
Top answer
1 of 16
3498

On Linux or MacOS:

python -m ensurepip --upgrade

If you want to install pip for Python 3, replace python with python3.

See https://pip.pypa.io/en/stable/installation/ for more details.

2 of 16
795

TL;DR โ€” One-line solution.

Run the following command for Python v2.7 (default on Mac as of 2021)

curl https://bootstrap.pypa.io/pip/2.7/get-pip.py | python

Run the following command for Python v3

curl https://bootstrap.pypa.io/get-pip.py | python

Or the following if you have it installed as Python 3

curl https://bootstrap.pypa.io/get-pip.py | python3

Another GIF image you said? Here you go!


The following used to work in 2019 and before

All you had to do was:

sudo easy_install pip

2019: easy_install has been deprecated. Check Method #2 below for the preferred installation!

Details:

OK, I read the solutions given above, but here's an easy solution to install pip.

The macOS comes with the Python environment installed. But to make sure that you have Python installed open the terminal and run the following command.

python --version

If this command returns a version number that means Python exists. This also means that you already have access to easy_install considering you are using macOS or OS X.

Now, all you have to do is run the following command.

sudo easy_install pip

After that, pip will be installed and you'll be able to use it for installing other packages.

P.S. I ended up blogging a post about it. QuickTip: How Do I Install pip on macOS or OS X?


Method #2: Two line solution

easy_install has been deprecated. Please use get-pip.py instead.

Download and install PIP

curl https://bootstrap.pypa.io/get-pip.py | python
๐ŸŒ
Invent with Python
inventwithpython.com โ€บ blog โ€บ quick-pip-guide.html
A Quick Pip Guide: How to Install Python Modules - Invent with Python
January 11, 2021 - You'll need to install it by opening a Terminal window and running sudo apt-get install python3-pip.