There is a setup.py script provided. Typically you run:

python setup.py install

From the directory were you've downloaded the library, and it gets installed automatically.

Consider also more convenient tools that manage installing Python libraries in general like pip or easy_install mentioned in other answers and comments.

Answer from BartoszKP on Stack Overflow
🌐
Real Python
realpython.com › python-coding-setup-windows
Your Python Coding Environment on Windows: Setup Guide – Real Python
July 25, 2022 - Now that you know how to do some Path troubleshooting and are relatively comfortable with your new command-line setup, it’s time to install Python with pyenv for Windows. ... Now it’s time to get set up with a few different Python versions. Even though it’s a good idea to keep up-to-date with the latest version of Python, it’s not uncommon to run into projects that won’t work with the latest and greatest. There are even programs that still run Python 2, after all! So it’s best to be ready to install any number of versions of Python, and to be able to switch between them easily.
🌐
Python
docs.python.org › 3 › using › windows.html
4. Using Python on Windows — Python 3.15.2 documentation
These will ensure that the files in a system-wide installation will not take precedence over the copy of the standard library bundled with your application. Otherwise, your users may experience problems using your application. Note that the first suggestion is the best, as the others may still be susceptible to non-standard paths in the registry and user site-packages.
Discussions

Best Practices in Installing Python Modules on Windows - Stack Overflow
I'm trying to install openpyxl and I haven't the clue how to install it. I have my C:\Python27...but what directory do I put it in? FYI, I'm a complete noob to modules and what not...I appreciate y... More on stackoverflow.com
🌐 stackoverflow.com
Python setup Best Practices Help
Install python3 (just the interpreter) directly instead of thru a package such as conda. From here forth use virtual environments , one per project. Use pip install to install the project's dependencies (they will be installed inside the virt. env. and not pollute your system). python3 -m venv myvenv . myvenv/bin/activate pip install --upgrade pip pip install wheel pip install ... pip install ... python ... Many projects contain a requirements.txt file which makes installing dependencies easier: pip install -r requirements.txt It is important that once you activate the virt. env.: . myvenv/bin/activate you use python instead of python3 to execute scripts subsequently. More on reddit.com
🌐 r/learnprogramming
5
5
August 12, 2023
How can I improve the performance of a Python application on Windows?
I am learning Python on Windows and want to understand some simple ways to improve the performance of my Python applications. What are the recommended practices for beginners? More on learn.microsoft.com
🌐 learn.microsoft.com
1
0
August 22, 2026
Best way to set up Python for Windows these days
Uv powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" From astral website in case you're (suitably) suspicious of random reditors giving you code to run. Learn to use Uv. It's awesome. More on reddit.com
🌐 r/learnpython
35
66
October 12, 2025
🌐
CodeRivers
coderivers.org › blog › windows-python
Windows Python: A Comprehensive Guide - CodeRivers
February 22, 2026 - Environment variables in Windows play a crucial role in making Python accessible from any location in the command prompt. The PATH environment variable is particularly important. When you install Python, it's a good practice to add the Python installation directory and its Scripts subdirectory to the PATH variable.
🌐
The Hitchhiker's Guide to Python
docs.python-guide.org › starting › installation
Properly Installing Python — The Hitchhiker's Guide to Python
Python 2 on Microsoft Windows. Python 2 on Linux. This opinionated guide exists to provide both novice and expert Python developers a best practice handbook to the installation, configuration, and usage of Python on a daily basis.
🌐
Reddit
reddit.com › r/learnprogramming › python setup best practices help
r/learnprogramming on Reddit: Python setup Best Practices Help
August 12, 2023 -

Python setup Best Practices Help

Prologue:

Been using my Laptop with windows 11 and PopOS dual booted. For over 3 years now.

After several installation that are unrelated and tons and tons of mess-ups, cleaning and changes.

I think I eventually messed my laptop up tons, with 1000s of GB worth of useless files, temps, bins, scripts and stuff.

I've backed-up everything necessary and will be doing a full reinstall of both OS by wiping the drives completely.

Aim:

Once done I'll be setting up my programming (assume from scratch. Everything works now, someone. But after the reset, I'll have to re-setup everything. And I've forgotten how.

I'd like to learn what are the best practices for coding setups.

I would like to use VSC exclusively but open to others.

I program in Python and Visual Basic Application (for excel)

And as a QA, I'd like to start with idk, selenium maybe too eventually ig.

I also do data analytics and dashboards via Tkinter and openpyxl.

Pre-requisites:

So, I understand we can download python from the website, but also from Microsoft Store. (And on linux it's already there)

I kinda understand Virtual environments. Like Venv and Virtualenv. (Love to understand which is better, and should I have both? Differences and why)

And I read a few guides, but everyone sets up differently. Some with conda some with pycharm, some VSC, some without venv? Some global ig?, And some differently. (Which years ago, I basically did everything under the sun)

Now I'd like to have ONE PROPER way. And like to decide what's a good setup for me.

Question:

  1. How do I fully set-up my coding place on windows 11, and/or Linux?

  2. Also so I can code with no hassles?

  3. Also so I understand why I'm setting it up this way?

  4. Also I can work on multiple projects, test a lot, and use Pyinstaller to make .exe files or idk what's used for Linux.

Expectations:

Biased responses is fine, I'd love to know what everyone does differently, but more importantly WHY

Also, hoping somehow tie this into bettering my QA skills and automation.

🌐
CodeRivers
coderivers.org › blog › python-window
Python Window: An In-Depth Exploration — CodeRivers
For example, if you need to manage a list of items in a window, using a list or a dictionary in an optimized way can improve performance. Test on Multiple Platforms: Always test your Python window applications on different operating systems (Windows, macOS, Linux) to ensure they work as expected.
Find elsewhere
🌐
Microsoft Learn
learn.microsoft.com › en-us › windows › python › beginners
Python on Windows for beginners | Microsoft Learn
For example, the default install location might require Administrative privileges, but by default Python will not have them. The best solution is to create a virtual environment and install there.
🌐
CodeRivers
coderivers.org › blog › run-a-python-program-in-windows
Running Python Programs in Windows: A Comprehensive Guide - CodeRivers
July 20, 2026 - Running Python programs on Windows is a multi-faceted process that involves installing Python, understanding different ways to execute code, and following best practices for code organization and development. With the Python Install Manager, getting started is easier than ever — install from the Microsoft Store or python.org, and use the py command to manage versions.
🌐
CodeRivers
coderivers.org › blog › how-to-execute-python-script-windows
Executing Python Scripts on Windows: A Comprehensive Guide - CodeRivers
April 22, 2025 - Virtual Environments: Using virtual environments is a good practice to isolate your Python projects and their dependencies. You can create a virtual environment using the venv module in Python 3. For example: ... This creates a new virtual environment named myenv. To activate it: - On Windows (Command Prompt):
🌐
CodeRivers
coderivers.org › blog › run-python-script-windows
Running Python Scripts on Windows: A Comprehensive Guide - CodeRivers
July 20, 2026 - Write your code, and then right-click on the editor and select "Run Python File in Terminal" to execute the script. You can also use the keyboard shortcut Ctrl+F5 to run without debugging. It is a good practice to create virtual environments for your Python projects.
🌐
CodeRivers
coderivers.org › blog › python-with-windows
Python on Windows: A Comprehensive Guide - CodeRivers
February 22, 2026 - Download Python: Go to the official Python website (python.org) and download the latest Windows installer for Python. The installer is available for both 32 - bit and 64 - bit systems. Run the Installer: double-click on the downloaded installer file. During the installation process, make sure to check the box "Add Python to PATH" to make it easier to run Python commands from the command prompt.
🌐
Towards Data Science
towardsdatascience.com › best-practices-for-setting-up-a-python-environment-d4af439846a
Best practices for setting up a Python environment | by Adiamaan Keerthi | Towards Data Science
February 15, 2022 - You have a global python version which should be a stable version of python that you should start as the base for most of your project, and then you can use newer or older versions of python based on the project need. For Windows, there is a port available pyenv-win.
🌐
Field Notes
stuartellis.name › field notes › articles › programming › modern good practices for python development
Modern Good Practices for Python Development · Field Notes
July 11, 2026 - Each executable file includes a copy of Python, along with your code and the required dependencies. Each executable will only run on the type of operating system and CPU that it was compiled to use. For example, an executable for Microsoft Windows on Intel-compatible machines will work on all editions of Windows, but it will not run on macOS.
🌐
CodeGenes
codegenes.net › blog › how-to-update-python-windows
Updating Python on Windows: A Comprehensive Guide — codegenes.net
Type python --version and press Enter. You should see the newly installed Python version. ... You can use Windows package managers like winget (Windows Package Manager) or Chocolatey to install and update Python:
🌐
Note
note.com › トップ › コンピュータ・it › プログラミング › python environment setup best practices (for non-programmers, windows edition)
Python Environment Setup Best Practices (For Non-Programmers, Windows Edition)|ミカイ|プログラミング×創作
May 3, 2026 - Python scripts use "libraries" (additional feature packs). Different scripts require different versions of libraries, and if you mix them together, they may stop working. By using a virtual environment, you can create a dedicated execution environment for each script, so it won't affect other scripts. The biggest advantage is that you don't have to clutter your entire Windows Python environment.
🌐
The Hitchhiker's Guide to Python
docs.python-guide.org
The Hitchhiker’s Guide to Python! — The Hitchhiker's Guide to Python
An opinionated guide to the Python programming language and a best practice handbook for the installation, configuration, and usage of Python on a daily basis.
Top answer
1 of 1
1

For beginners, focus on measuring performance first, then make small improvements in the areas that matter most.

Recommended practices:

  1. Measure before optimizing
    • Performance includes CPU usage, memory consumption, power consumption, network and storage utilization, and animation performance.
    • Make performance a regular part of development and testing instead of waiting until the app feels slow.
  2. Use profiling to find where time is spent
    • In Visual Studio, Python profiling is available for Python 3.9 and earlier with a CPython-based interpreter.
    • To profile code in Visual Studio:
      1. Open the Python code file.
      2. Confirm the interpreter is CPython-based.
      3. Select Debug > Launch Python Profiling.
      4. Choose either the whole project or a standalone script.
      5. Select Start and review the performance report.
    • This helps identify which functions or parts of the program consume the most time.
  3. Reduce memory usage
    • Lower memory usage improves app performance and overall system responsiveness.
    • Good beginner habits include:
      • reducing foreground memory usage,
      • minimizing background work,
      • releasing resources while the app is in the background,
      • avoiding memory leaks.
    • Dynamic memory is the more significant source of memory usage and where leaks usually appear.
  4. Benchmark without debugger overhead
    • When comparing performance, run Python code with Debug > Start Without Debugging or Ctrl+F5.
    • This avoids debugger overhead and gives a more realistic benchmark.
  5. Keep Python code correct and simple before optimizing
    • Write the solution in pure Python first.
    • After the code is correct, measure it and then optimize the slow parts.
  6. Consider native extensions only after profiling
    • If a specific computation-heavy section is proven to be the bottleneck, a C++ extension can significantly improve speed.
    • In the documented example, C++ routines ran about 5 to 20 times faster than the Python implementation.
    • Also note that a debug build of a C++ module runs slower than a release build.
  7. Use a solid Windows Python setup
    • A basic setup for learning on Windows is Python, Visual Studio Code, and the Python extension for VS Code.
    • VS Code also provides Python support for editing, linting, debugging, and unit testing.

A simple beginner workflow is:

  • write the program in pure Python,
  • run it without debugging for timing,
  • profile it if it is slow,
  • reduce unnecessary memory use and background work,
  • optimize only the parts proven to be slow.

  • Windows app performance and fundamentals overview
  • Improve app performance by reducing the use of memory and disk space
  • Profile Python code in Visual Studio
  • Create a C++ extension for Python in Visual Studio
  • Create a C++ extension for Python in Visual Studio
  • Set up your Python development environment on Windows
  • Set up your Python development environment on Windows
🌐
Reddit
reddit.com › r/learnpython › best way to set up python for windows these days
r/learnpython on Reddit: Best way to set up Python for Windows these days
October 12, 2025 -

I just got a new Windows laptop (we have to use Windows at my job). For all my prior laptops, I wound up with a confusing mishmash of the Windows store Python (or stub), several other versions, various path issues and (my fault) various issues with global packages vs. user installed packages vs. virtual environments.

If you were starting over with a new Windows laptop what approach would you use? Just python.org and venv? Should I use uv? Maybe I should use wsl2 instead of native Windows? Or run within Docker containers?

I'd like to get off to a strong start.

🌐
YouTube
youtube.com › watch
How to install Python on Windows 11 Step by Step Guide
Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.