Here are the steps that I have followed to install the latest Python (and PIP) for all users on Windows (This is not an Anaconda installation)
- Download Python for Windows 64-bits from https://www.python.org/downloads/
- Uninstall the previous version to have a clean installation (Optional)
- Installation Setup Settings
Use admin privileges when installing py.exe
Add Python version to PATH = checked
- Optional features:
- Documentation = checked
- pip = checked
- td/tk the IDLE = checked
- Python test suite = checked
- py launcher = checked for all users (requires elevation) = checked
- click Next button
NOTE
1. If we install Python for the logged-on (current) user the path is in the AppData folder.
2. If we install Python for all users the path is in the Program Files (C:\Program Files\Python3.12)
- Click the Install button
- Setup was successful
==================================
To test that Python and pip are installed on the machine
- open cmd or PowerShell and write
- python --version
- pip --version
As a response, you will get the version of Python and pip installed on your machine
===========================================================================
When you install Anaconda, Python, and pip are installed automatically. Open the Anaconda prompt and run the following commands
This will list all the packages installed for the current environment (python and pip should be on the list)
This will list where Python has been installed on your OS (I have Pyrhon on my OS installed within Anaconda installation, Program Files, and AppData for the current user)
This will list the version of Python installed on the current conda environment
This will list the version of pip installed on the current conda environment