Skip to main content
St Louis

Back to all posts

How to Properly Install Python?

Published on
7 min read
How to Properly Install Python? image

Best Python Installation Tools to Buy in January 2026

1 Python Programming Cheat Sheet Desk Mat - Large Mouse Pad with Complete Code Reference (31.5" x 11.8") - Professional Coding Guide Mousepad for Beginners & Software Engineers

Python Programming Cheat Sheet Desk Mat - Large Mouse Pad with Complete Code Reference (31.5" x 11.8") - Professional Coding Guide Mousepad for Beginners & Software Engineers

  • MASTER PYTHON QUICKLY: ESSENTIAL SYNTAX AND OOP CONCEPTS AT A GLANCE!

  • PROFESSIONAL-GRADE SIZE: LARGE DESK MAT, NON-SLIP BASE FOR ULTIMATE COMFORT.

  • ALL-IN-ONE RESOURCE: COMPREHENSIVE GUIDE FOR BEGINNERS AND PROS ALIKE!

BUY & SAVE
$25.95
Python Programming Cheat Sheet Desk Mat - Large Mouse Pad with Complete Code Reference (31.5" x 11.8") - Professional Coding Guide Mousepad for Beginners & Software Engineers
2 Python Programming Logo for Programmers T-Shirt

Python Programming Logo for Programmers T-Shirt

  • VINTAGE PYTHON DESIGN PERFECT FOR SOFTWARE ENGINEERS AND DEVELOPERS.
  • LIGHTWEIGHT, CLASSIC FIT FOR ALL-DAY COMFORT WHILE CODING.
  • UNIQUE, DISTRESSED LOOK STANDS OUT IN ANY PROGRAMMING CROWD.
BUY & SAVE
$19.99
Python Programming Logo for Programmers T-Shirt
3 Python Programming Funny Programmer Python Logo Sneks Gift T-Shirt

Python Programming Funny Programmer Python Logo Sneks Gift T-Shirt

  • HUMOROUS SNEK DESIGN APPEALS TO PYTHON PROGRAMMERS' FUN SIDE.
  • LIGHTWEIGHT, CLASSIC FIT ENSURES COMFORT FOR CODING SESSIONS.
  • PERFECT GIFT FOR CODERS WHO APPRECIATE PROGRAMMING MEMES AND HUMOR.
BUY & SAVE
$19.99
Python Programming Funny Programmer Python Logo Sneks Gift T-Shirt
4 Learn Robotics Programming: Build and control AI-enabled autonomous robots using the Raspberry Pi and Python

Learn Robotics Programming: Build and control AI-enabled autonomous robots using the Raspberry Pi and Python

BUY & SAVE
$29.24 $59.99
Save 51%
Learn Robotics Programming: Build and control AI-enabled autonomous robots using the Raspberry Pi and Python
5 Funny Python Programmer Nutritional Facts Python Programming T-Shirt

Funny Python Programmer Nutritional Facts Python Programming T-Shirt

  • HUMOROUS DESIGN APPEALS TO PYTHON PROGRAMMERS AND TECH ENTHUSIASTS.
  • GREAT GIFT OPTION FOR DEVELOPERS, STUDENTS, AND CODING FANS ALIKE!
  • COMFORTABLE, LIGHTWEIGHT FIT ENSURES ALL-DAY WEAR WHILE CODING.
BUY & SAVE
$18.90
Funny Python Programmer Nutritional Facts Python Programming T-Shirt
6 Learn Python Programming for Kids: Fun and Easy Python Coding Lessons with KidzCodeStick

Learn Python Programming for Kids: Fun and Easy Python Coding Lessons with KidzCodeStick

  • ENGAGING, FUN PYTHON LESSONS TAILORED FOR KIDS OF ALL AGES!
  • BEGINNER-FRIENDLY EXERCISES MAKE CODING EASY AND ENJOYABLE.
  • UNLOCK FUTURE OPPORTUNITIES WITH ESSENTIAL CODING SKILLS TODAY!
BUY & SAVE
$29.99
Learn Python Programming for Kids: Fun and Easy Python Coding Lessons with KidzCodeStick
7 Python Programming for Raspberry Pi: Crafting Innovation through Code and Hardware

Python Programming for Raspberry Pi: Crafting Innovation through Code and Hardware

BUY & SAVE
$14.99
Python Programming for Raspberry Pi: Crafting Innovation through Code and Hardware
8 Vintage Python Programming Language T-Shirt T-Shirt

Vintage Python Programming Language T-Shirt T-Shirt

  • VINTAGE STYLE PERFECT FOR PYTHON ENTHUSIASTS AND TECH PROFESSIONALS.
  • LIGHTWEIGHT AND CLASSIC FIT FOR ALL-DAY COMFORT AND STYLE.
  • DURABLE DOUBLE-NEEDLE STITCHING ENSURES LONG-LASTING WEAR.
BUY & SAVE
$19.99
Vintage Python Programming Language T-Shirt T-Shirt
9 Python Powered Logo Programming Language T-Shirt

Python Powered Logo Programming Language T-Shirt

  • PERFECT FOR PROGRAMMERS AND CODERS TO SHOWCASE THEIR PASSION!
  • LIGHTWEIGHT AND COMFORTABLE FIT FOR ALL-DAY WEAR.
  • DURABLE DESIGN WITH DOUBLE-NEEDLE STITCHING FOR LONG-LASTING USE.
BUY & SAVE
$20.99
Python Powered Logo Programming Language T-Shirt
+
ONE MORE?

To properly install Python, follow these steps:

  1. Visit the official Python website at www.python.org.
  2. Click on the "Downloads" tab to navigate to the Python download page.
  3. Scroll down and select the latest version of Python for your operating system.
  4. Choose either the Windows x86-64 executable installer (for 64-bit operating systems) or the Windows x86 executable installer (for 32-bit operating systems).
  5. Once the installer is downloaded, double-click on the installer file.
  6. Check the box that says "Add Python to PATH" during the installation process. This will make it easier to run Python from the command prompt.
  7. Select the "Customize installation" option and review the optional features. You can choose to install additional components such as Python documentation or pip (a package manager).
  8. Select the installation location. The default location is usually fine, but you may choose a different directory if you prefer.
  9. Python will be installed with the selected components and settings. This may take a few minutes.
  10. Once the installation is complete, you can verify if Python is installed correctly by opening the command prompt and typing "python" or "python --version". If Python is recognized and the version is displayed, then the installation was successful.

Congratulations! You have now properly installed Python on your computer.

How to install Python libraries for web development?

To install Python libraries for web development, you can follow these steps:

  1. Install Python: Download and install Python from the official website (https://www.python.org/downloads/). Make sure to check the "Add Python to PATH" option during the installation.
  2. Set up a virtual environment (optional): While it's not mandatory, it is recommended to create a virtual environment to keep your project dependencies isolated. Open the command prompt and navigate to your project directory. Run the command python -m venv myenv to create a virtual environment named "myenv". Activate the virtual environment by running myenv\Scripts\activate on Windows, or source myenv/bin/activate on Linux/Mac.
  3. Install packages using pip: Pip is the package installer for Python. Run the command pip install package_name to install a specific package. Replace "package_name" with the name of the library you want to install. For example, pip install Flask to install Flask, a popular web development framework for Python.
  4. Install requirements from a file: If you have a list of dependencies defined in a requirements.txt file, you can install them all at once. Create a requirements.txt file in your project directory and list all the required packages, each on a new line. Then run the command pip install -r requirements.txt.
  5. Verify the installation: After the installation, you can verify if the packages were installed successfully. Run the Python interpreter by typing python in the command prompt and then try importing the installed library. For example, if you installed Flask, type import flask. If no errors occur, the library is installed correctly.

By following these steps, you can install Python libraries for web development and start working on your web projects.

How to write and run a Python script?

To write and run a Python script, follow the steps below:

  1. Install Python: If you haven't already, download and install Python from the official Python website (https://www.python.org/downloads/). Choose the version suitable for your operating system.
  2. Text Editor: Choose a text editor or an integrated development environment (IDE) to write your Python script. Some popular choices are Visual Studio Code, PyCharm, Atom, Sublime Text, or any text editor of your preference.
  3. Create a new file: Open your chosen text editor and create a new file with a ".py" extension. for example, "script.py".
  4. Write your Python code: Within your text editor, start writing your Python code. For example, you can begin with a simple "Hello, World!" program:

print("Hello, World!")

  1. Save the script: Save your script file with the appropriate file extension, usually ".py". Make sure the file is saved in a location where you can easily find it.
  2. Open a terminal or command prompt: Open a terminal or command prompt on your computer.
  3. Navigate to the script's directory: Use the "cd" command to navigate to the directory where your script is located. For example:

cd /path/to/script/

  1. Run the script: In the terminal or command prompt, enter the following command to run your Python script:

python script.py

If you have both Python 2 and Python 3 installed on your system, use python3 instead of python to specify Python 3.

  1. Observe the output: After running the command, the output of your Python script should be displayed in the terminal or command prompt.

Congratulations! You have successfully written and executed a Python script. You can now modify the script or write more complex programs following the same process.

How to install Python on a server?

To install Python on a server, you can follow these general steps:

  1. SSH into the server: Use a Secure Shell (SSH) client such as PuTTY to remotely access the server.
  2. Update the system: Run the following command to ensure that your server has the latest packages and updates: sudo apt update
  3. Install Python: Run the following command to install Python and the necessary dependencies: sudo apt install python3 Alternatively, you can install specific versions of Python by specifying the package name (e.g., python3.9).
  4. Verify the installation: After the installation is complete, you can verify it by running the following command: python3 --version This should display the installed Python version.

Additionally, you may want to install additional packages or libraries using pip, the Python package installer. You can install pip by running the following command:

sudo apt install python3-pip

To check the pip installation, use:

pip3 --version

Remember to make sure your server meets the system requirements and that you have the necessary administrative privileges to perform installations. The installation process might be different depending on the server's operating system (e.g., Ubuntu, CentOS), so always refer to the relevant documentation for specific instructions.

What is Python used for?

Python is a versatile programming language that is used for various purposes, including:

  1. Web development: Python can be used to build websites and web applications through frameworks like Django and Flask.
  2. Data analysis and visualization: Python has powerful libraries like NumPy, Pandas, and Matplotlib that facilitate data manipulation and visualization.
  3. Machine learning and artificial intelligence: Python is widely used in the fields of machine learning and AI due to libraries like TensorFlow, PyTorch, and scikit-learn.
  4. Automation and scripting: Python's simplicity and readability make it an excellent choice for automating repetitive tasks and creating scripts.
  5. Scientific computing: Python, along with libraries like SciPy and SymPy, is used for scientific computations and solving mathematical equations.
  6. Game development: Popular game engines like Pygame and Panda3D allow developers to create games using Python.
  7. Desktop application development: Python can be used to develop cross-platform desktop applications using frameworks like Tkinter, PyQt, and wxPython.
  8. Networking and cybersecurity: Python's built-in networking libraries make it useful for network programming and developing cybersecurity tools.
  9. Internet of Things (IoT): Python is often used to develop IoT applications and connect devices using libraries like Raspberry Pi and Arduino.
  10. Education: Python's simplicity, readability, and extensive documentation make it a popular language for beginners learning programming.