How to get Python and Pip working on Windows will be described in this article. If you’re a Python developer or Windows user who needs a Python interpreter and Pip to install various programmes, we’ve got you covered. This tutorial will demonstrate how to install Python and Pip on Windows.
How to get Python
Windows users can utilise Python. To avoid having to manually configure everything, it is recommended to install it from the Microsoft Store. The Microsoft Store now supports the following versions: 3.11, 3.10, 3.9, 3.8, and 3.7. Therefore, you can download Python on Windows in whichever version you require.
The most recent Python version accessible to Windows users through the Microsoft Store is Python 3.11. Start tapping the Windows key on the keyboard to install it.
Look for “Microsoft Store” in the Windows app menu, then click it to access it. Once the Windows shop is opened, enter “Python 3.11” into the search box there. It ought to appear in the search results.
Select “Python 3.11” with the mouse after finding it in the search results. then use your mouse to click on the “Get” button you found. This version of Python will be downloaded and installed by the Microsoft Store when you select the “Get” button.
Python 3.10 is available through the Microsoft Store for Windows users. Start by pressing the Win key to bring up the Windows app menu on your keyboard. After that, look for “Microsoft Store” and open it.
Enter “Python 3.10” into the Microsoft Store’s search bar. Select “Python 3.10” from the search results after that. Finally, click “Get” to download Python 3.10 and install it on your Windows machine.
Although upgrading to a more recent version of Python is generally recommended, you may still purchase. Open the Microsoft Store on your PC to get started.
Find the search box once the Microsoft Store has loaded and click it with your mouse. Enter “Python 3.9” into the search box after choosing it. Finally, click “Get” to start the Python 3.9 download and installation process on your computer.
Python 3.8/Python 3.7
For Windows users, Python 3.8 and 3.7 are offered in the Microsoft Store. We strongly advise downloading versions 3.11, 3.10, or 3.9 instead of these ones.
If your Windows machine requires these specific versions of Python, look for “Python 3.8” or “Python 3.7” there to download it.
How to Use Python on Windows
Open Powershell to use the Python interpreter inside of Windows. Run the python command after it has opened. The python3 command also functions.
Exactly how to set up Pip on Windows
On Windows, Pip is required for a large number of Python-based products. The Python package manager, or Pip, makes it simple to install Python executables and dependencies.
Users have a few options for installing Pip on Windows. However, using the Get-pip Python script is the simplest and quickest approach to get it working. This script will install everything, identify your operating system, and detect it.
Please examine the Get-pip script’s code before we go into how to utilise it. Even if the script is reliable, you should still review it before running it.
Visit the Get-pip page on Bootstrap.pypa.io to examine the Get-pip script. Open Windows Powershell after downloading the script on your computer. Afterward, launch Windows Explorer.
To access your Downloads folder, choose “Downloads” inside Windows Explorer. Right-click the “get-pip.py” file and choose “Cut” from the menu that appears. The script will be copied to your Windows clipboard if you choose this option.
Once the file is on your Windows clipboard, access it by looking for “This PC” there. Next, select the “C:/” drive. Once the “C:/” drive has been loaded, use the “Paste” option from the context menu to insert the get-pip.py script.
It should be noted that when instructed to paste the get-pip.py script in the “C:/” directory, Explorer will require administrative rights.
Return to Powershell and enter the “C:/” directory where the get-pip.py script is located using the CD command.
You can use the ls command to see the contents of a folder once you are within the “C:/” directory. Even though it’s not necessary, doing this will allow you to make sure the get-pip.py script is located where it should be.
Make sure Python is installed before running the script to install the Python package management (Pip) on Windows. then execute the next command. You shouldn’t have to work with Powershell at any point because everything should be automated.
How to use Pip on Windows
Start by launching Powershell on your Windows computer before using Pip. You can issue the pip command once it is open.
You can use Pip on Windows and the Pip -help function in Powershell to get more information about commands. It will show you a comprehensive help page with instructions on how to use Pip.