DEV Community

Cover image for How to install the python
Jagadishwaran G
Jagadishwaran G

Posted on

How to install the python

Installing Python on a Windows 64-bit system is straightforward. Here's a step-by-step guide to help you through the process:

Step 1: Download Python Installer
Visit the Python official website: Go to python.org.

Navigate to the downloads section: Click on "Downloads" from the top navigation menu.

Download Python: The website should detect your operating system and offer the appropriate installer. You'll want to download the latest version of Python 3.x (e.g., Python 3.10.0). Ensure that you select the 64-bit installer unless you specifically need the 32-bit version for compatibility reasons.

Direct link to the Python download page: Python Downloads
Step 2: Run the Installer
Run the downloaded installer: Once the download completes, locate the downloaded installer file (typically named something like python-3.X.X-amd64.exe where X.X is the version number).

Launch the installer: Double-click the installer file to start the installation process.

Check "Add Python to PATH": On the first page of the installer, make sure to check the box that says "Add Python X.X to PATH". This will allow you to run Python from the command line more easily.

Customize the installation (optional): You can click on "Customize installation" if you want to modify the installation directory or choose specific components. For most users, the default options are fine.

**Begin installation: **Click "Install Now" to begin the installation.

Wait for the installation to complete: The installer will now install Python onto your system. This process usually takes a few minutes.

Step 3: Verify Python Installation
Check Python version: Once the installation is complete, you can verify it by opening a command prompt:

Type python --version or python -V and press Enter. This should display the installed Python version, confirming that Python is installed correctly.
Optional: Verify pip installation: Pip is Python's package installer, and it usually comes bundled with Python installations from version 3.4 onwards. To verify pip, type pip --version or pip -V and press Enter. This should display the installed pip version.

Step 4: Set up Python Development Environment (Optional)
Install a text editor or IDE: While not necessary for running Python, you may want to install a text editor or an Integrated Development Environment (IDE) for easier coding. Popular choices include Visual Studio Code, PyCharm, and IDLE (comes with Python).

Top comments (0)