Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kernferm/py3.12.1-installer-ps1
This repository contains a robust PowerShell script designed to install Python 3.12.1 on Windows. The script includes detailed logging functionality, ensuring that each step of the installation process is recorded in a log file created on your desktop.
https://github.com/kernferm/py3.12.1-installer-ps1
3121 powershell python
Last synced: 12 days ago
JSON representation
This repository contains a robust PowerShell script designed to install Python 3.12.1 on Windows. The script includes detailed logging functionality, ensuring that each step of the installation process is recorded in a log file created on your desktop.
- Host: GitHub
- URL: https://github.com/kernferm/py3.12.1-installer-ps1
- Owner: KernFerm
- License: mit
- Created: 2024-08-30T00:44:26.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-26T20:22:28.000Z (12 days ago)
- Last Synced: 2024-10-26T22:24:56.067Z (12 days ago)
- Topics: 3121, powershell, python
- Language: PowerShell
- Homepage:
- Size: 22.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
## Support the Project โญ
If you find this project useful, please give it a star! Your support is appreciated and helps keep the project growing. ๐
# ๐ Python 3.12.1 Installation Script (PowerShell) ๐
This repository contains a **robust PowerShell script** designed to install Python 3.12.1 on Windows ๐ฅ๏ธ. The script includes detailed logging functionality, ensuring that each step of the installation process is recorded in a log file created on your desktop ๐.
---
## โจ Features
- **Automated Installation**: Automatically downloads and installs Python 3.12.1 โ๏ธ.
- **Detailed Logging**: All installation steps are logged into a file located in a `Python_Install_Logs` folder on your desktop ๐.
- **Error Handling**: The script checks for errors during the download, installation, and verification processes, logging any issues encountered ๐จ.
- **Silent Installation**: Python is installed silently with all users having access, and the PATH variable is updated automatically ๐.---
## ๐ Usage
1. **Download the Script**:
- Click on the `Install-Python-3.12.1.ps1` file in this repository.
- Click the **Download** button to save the script to your local machine ๐พ.2. **Run the Script**:
- Navigate to the location where you downloaded the script.
- Right-click on `Install-Python-3.12.1.ps1` and select **Run with PowerShell** ๐ป.3. **Administrative Privileges**:
- Make sure to run the script with administrator privileges ๐ก๏ธ to ensure proper installation and PATH updates.
---
### ๐ง v7.4.6 Release of PowerShell - Latest (recommended)
Select the version that matches your system specs:
- For **Windows 64-bit systems**: [Download 64-Bit Installer](https://github.com/PowerShell/PowerShell/releases/download/v7.4.6/PowerShell-7.4.6-win-x64.msi)
- For **Windows 32-bit systems**: [Download 32-Bit Installer](https://github.com/PowerShell/PowerShell/releases/download/v7.4.6/PowerShell-7.4.6-win-x86.msi)Select the version of PowerShell you wish to install, with `v7.4.6` being the latest recommended version ๐ง.
---
### ๐ Variables
- **$PythonVersion**: Specifies the Python version to install (3.12.1) ๐ข.
- **$LogDir**: Directory where the log file will be stored (on your desktop ๐ฅ๏ธ).
- **$LogFile**: The log file that records the installation process ๐.
- **$InstallerName**: The name of the Python installer file ๐.
- **$InstallerUrl**: The URL from which the Python installer is downloaded ๐.---
### ๐ ๏ธ Steps
1. **Create Log Directory**: The script first checks if the log directory exists on the desktop. If not, it creates the directory ๐๏ธ.
2. **Start Logging**: The script begins logging each step ๐.
3. **Download Installer**: The script downloads the Python installer from the official Python website ๐ฅ.
4. **Install Python**: The installer is run silently, installing Python for all users and updating the PATH ๐ ๏ธ.
5. **Verify Installation**: After installation, the script checks that Python was installed correctly by running `python --version` ๐ง.
6. **Cleanup**: The installer file is deleted after a successful installation ๐งน.---
## ๐ Logging
All log files are stored in the `Python_Install_Logs` folder on your desktop ๐. Each log entry includes a timestamp for easy tracking โฑ๏ธ. The log file provides a detailed report on each step of the installation process, including any errors encountered ๐จ.
---
## ๐ License
This project is licensed under the **MIT License**. See the [LICENSE](https://github.com/KernFerm/Py3.12.1-installer-PS1/blob/main/LICENSE) file for details ๐.
---
## ๐ก Contributing
If you have suggestions or improvements, please feel free to share by contacting me directly โ๏ธ.
---
## ๐ง Contact
For any questions or issues, please [create an issue](https://github.com/KernFerm/Py3.12.1-installer-PS1/issues).
---
### ๐ Notes:
- **How to Download the Repo**: Provides instructions on downloading the repository.
- **Prerequisites**: Lists the system and connection requirements.
- **Usage**: Details on how to run the installation script.
- **Instructions**: Explains the step-by-step installation process.
- **Logging**: Describes how logs are stored and tracked.