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 OverflowBest Practices in Installing Python Modules on Windows - Stack Overflow
Python setup Best Practices Help
How can I improve the performance of a Python application on Windows?
Best way to set up Python for Windows these days
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.
It's even easier when the package is on the Python Package Index (PyPI). Just install pip and use it to download and install the package and all its dependencies.
https://pypi.python.org/pypi/pip
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:
-
How do I fully set-up my coding place on windows 11, and/or Linux?
-
Also so I can code with no hassles?
-
Also so I understand why I'm setting it up this way?
-
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.
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.