The Quick Python & Libraries Installer is a straightforward PowerShell script designed to automate the setup of a Python development environment. It efficiently installs the latest Python 3 version using winget and subsequently deploys a set of essential Python libraries via pip. This script simplifies the initial setup process, ensuring that developers and users have a functional Python environment with key libraries readily available.
Built by: Zachary Whiteman & Google Gemini.
This script provides a quick and direct way to set up Python and essential libraries.
To run this script, you will need:
- Windows Operating System: (Windows 7 or later).
- PowerShell 5.1 or newer: This script uses PowerShell's capabilities for system interaction.
winget: The Windows Package Manager (winget) must be installed and accessible in your system's PATH.- Internet Connection: An active internet connection is required to download Python and its libraries.
- Download: Download the
PythonInstaller.PS1script file. - Unblock: Right-click the file, go to Properties, and click
Unblockif the file was downloaded from the internet. - Run: Execute the script from a PowerShell console or by double-clicking it.
The PowerShell console window will automatically minimize upon launch, and all installation progress will be displayed within it. The window will remain open after completion for you to review the output.
.\PythonInstaller.PS1
Simply execute the script. It will automatically perform the following steps:
- Minimize Console: The PowerShell console window will minimize to provide a less intrusive experience.
- Install Python: The script will use
wingetto silently install the latest version of Python 3. - Locate Python: It will then find the newly installed Python executable (
python.exe). - Install Libraries:
pipwill be used to install the following essential Python libraries:wxpythonpywin32requestspsutil
- Review Output: After all installations are attempted, the console window will remain open, displaying a log of the entire process, including any warnings or errors during library installation.
- Automated Python Installation: Installs the latest stable version of Python 3 using
winget, a reliable package manager for Windows. - Essential Library Setup: Automatically installs a curated set of common and useful Python libraries, ensuring a ready-to-use development environment.
- Silent Execution: Python installation is performed silently in the background, minimizing user interruptions.
- Intelligent Path Discovery: The script dynamically locates the Python installation path after installation to correctly execute
pipcommands. - Non-Intrusive Console: The PowerShell console window is automatically minimized upon startup for a cleaner user experience.
- Post-Execution Review: The console remains open after the installation process is complete, allowing users to review the full output and troubleshoot any potential issues.
- Robust Error Handling: Includes basic
try-catchblocks to report errors during the installation process.
The script is developed entirely in PowerShell, leveraging external tools for package management:
- Scripting Language: PowerShell
- Package Management:
winget(Windows Package Manager) for installing the Python interpreter.pip(Python's package installer) for managing Python libraries.
- Process Management:
Start-Processfor executingwingetandpipcommands. - Operating System Interaction: C# P/Invoke for console window minimization.
- File System Operations: Standard PowerShell cmdlets for path discovery.
The Quick Python & Libraries Installer script performs modifications to your system and downloads software from external sources.
- Local Execution: All operations are performed locally on your machine.
- External Dependencies: Relies on
wingetbeing installed and an active internet connection to download Python and its libraries. - Installation Location: Python is typically installed in the user's local application data directory (
%LOCALAPPDATA%\Programs\Python). - Process Execution: Uses
Start-Processto runwingetandpipcommands. - No Telemetry: The script does not collect or transmit any user data or telemetry.
Distributed under the MIT License. See LICENSE.txt for more information.
Zach Whiteman - elitesoftwarecolimited@gmail.com
HuggingFace - https://huggingface.co/EliteSoftware
HuggingFace (Personal) - https://huggingface.co/TheShadyRainbow
LinkTree - https://linktr.ee/zachrainbow