{"id":26068274,"url":"https://github.com/mustafa-ali0/create-multiple-python-versions","last_synced_at":"2026-04-16T12:01:50.648Z","repository":{"id":281362454,"uuid":"943957528","full_name":"mustafa-ali0/Create-Multiple-Python-Versions","owner":"mustafa-ali0","description":"Script that install a pyenv repository and create a pyenv folder and write a command in powershell to help you switch between multiple python versions","archived":false,"fork":false,"pushed_at":"2025-03-08T14:49:58.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-03T13:30:19.835Z","etag":null,"topics":["batch-script","powershell","powershell-script","pyenv","pyenv-alternative","pyenv-for-windows","pyenv-win","python","python-version-management","script","script-automation"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mustafa-ali0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-06T14:48:55.000Z","updated_at":"2025-03-08T14:50:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b08dee1-1592-48e8-8e72-425230c4febf","html_url":"https://github.com/mustafa-ali0/Create-Multiple-Python-Versions","commit_stats":null,"previous_names":["mustafa-ali0/create-multiple-python-versions"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mustafa-ali0/Create-Multiple-Python-Versions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafa-ali0%2FCreate-Multiple-Python-Versions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafa-ali0%2FCreate-Multiple-Python-Versions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafa-ali0%2FCreate-Multiple-Python-Versions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafa-ali0%2FCreate-Multiple-Python-Versions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mustafa-ali0","download_url":"https://codeload.github.com/mustafa-ali0/Create-Multiple-Python-Versions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafa-ali0%2FCreate-Multiple-Python-Versions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31884929,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T11:36:10.202Z","status":"ssl_error","status_checked_at":"2026-04-16T11:36:09.652Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["batch-script","powershell","powershell-script","pyenv","pyenv-alternative","pyenv-for-windows","pyenv-win","python","python-version-management","script","script-automation"],"created_at":"2025-03-08T22:22:29.165Z","updated_at":"2026-04-16T12:01:50.639Z","avatar_url":"https://github.com/mustafa-ali0.png","language":"PowerShell","readme":"# **Script for creating multiple Python versions for Windows**\n\nThis project automates the installation of **pyenv** on Windows, allowing users to manage multiple Python versions seamlessly. The provided PowerShell script simplifies the setup and configuration of **pyenv**, setting environment variables and handling version management.\n\n## Table of Contents\n1. [Introduction](#introduction)\n2. [Features](#features)\n3. [Installation](#installation)\n   - [Automated Installation](#automated-installation)\n   - [Manual Setup](#manual-setup)\n4. [Usage](#usage)\n   - [Setting Global Python Version](#setting-global-python-version)\n   - [Setting Local Python Version](#setting-local-python-version)\n   - [Virtual Environment Setup](#virtual-environment-setup)\n5. [VSCode Configuration](#vscode-configuration)\n6. [Acknowledgments](#acknowledgments)\n\n---\n\n## **Introduction**\n\nThis project provides a PowerShell script to automate the installation of **pyenv-win**, a Python version manager for Windows. It simplifies setting up **pyenv**, handling multiple Python versions, and integrating with virtual environments.\n\n## **Features**\n- Automates the download and installation of **pyenv-win**.\n- Sets environment variables for **pyenv** automatically.\n- Adds **pyenv** to the system **PATH** for seamless access.\n- Creates a virtual environment for Python projects and integrates it with **VSCode, etc...**.\n\n---\n\n## **Installation**\n\n1. **Download the PowerShell Script:**\n   - Download the PowerShell script [![Download ZIP](https://img.shields.io/badge/Download%20ZIP-blue?style=for-the-badge)](https://github.com/mustafa-ali0/install-Multiple-Python-Versions/archive/refs/heads/main.zip) from this repository.\n\n2. **Run the install_pyenv.bat:**\n   - The script will do this :\n     - Download the pyenv repository.\n     - Extract the pyenv files to your **.pyenv** folder.\n     - Set environment variables for **pyenv**.\n     - Add **pyenv** directories to the **PATH** variable.\n     - Unblock the pyenv script if necessary.\n\n3. **Restart PowerShell:**\n   - After the script finishes, restart your PowerShell terminal to apply the changes.\n\n---\n\n### **Manual Setup**\n\nIf you prefer to manually set up **pyenv** or need more control, follow these steps:\n\n1. **Download pyenv-win**:\n   - Go to the [pyenv-win GitHub repository](https://github.com/pyenv-win/pyenv-win) and follow the instructions there.\n\n2. **Create `.pyenv` Directory**:\n   - Manually create a `.pyenv` folder in your home directory.\n\n3. **Set Environment Variables**:\n   - Set the `PYENV` and `PYENV_HOME` environment variables to the pyenv installation path.\n\n4. **Add pyenv to PATH**:\n   - Add the `bin` and `shims` directories of **pyenv** to the system **PATH**.\n\n---\n\n## **Usage**\n\n### **Setting Global Python Version**\n\nTo set the global Python version:\n\n```bash\npyenv global 3.13.2  # Or any version of your choice\n```\n\nThis sets the default Python version for your system.\n\n### **Setting Local Python Version for a Specific Project**\n\nTo set a local Python version for a specific project:\n\n1. Navigate to your project folder:\n   ```bash\n   cd (your project path)\n   ```\n\n2. Set the local Python version:\n   ```bash\n   pyenv local 3.12.2  # Or any version of your choice\n   ```\n\n### **Virtual Environment Setup**\n\nTo create and activate a virtual environment for your project:\n\n1. Navigate to your project folder:\n   ```bash\n   cd (your project path)\n   ```\n\n2. Create the virtual environment:\n   ```bash\n   python -m venv .venv\n   ```\n\n3. Activate the virtual environment:\n   ```bash\n   .\\.venv\\Scripts\\activate\n   ```\n\n---\n\n## **VSCode Configuration**\n\nTo use **pyenv** in **VSCode**, follow these steps to configure the terminal to activate the virtual environment:\n\n1. **Open VSCode Command Palette:**\n   - Press `Ctrl + Shift + P` in VSCode.\n   - Type and select `Open Workspace Settings (JSON)`.\n\n2. **Modify JSON Settings:**\n   - Add the following configuration to your `settings.json` file:\n     ```json\n     {\n         \"python.terminal.activateEnvironment\": true\n     }\n     ```\n\n3. **Restart VSCode:**\n   - After saving the settings, restart VSCode to ensure the changes take effect.\n\n---\n\n\n## **Acknowledgments**\n\nThis project utilizes the [pyenv-win](https://github.com/pyenv-win/pyenv-win) repository to manage Python versions on Windows. Special thanks to the contributors of **pyenv-win** for their work.\n\n- **Repository**: [pyenv-win on GitHub](https://github.com/pyenv-win/pyenv-win)\n- **Creator**: [pyenv-win Contributors](https://github.com/pyenv-win/pyenv-win/graphs/contributors)\n\n---\n\n### Conclusion\n\nWith this automation script and manual setup guide, you can efficiently manage multiple Python versions on your Windows system. Enjoy working with **pyenv** and simplifying your Python development workflows!\n\n---\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmustafa-ali0%2Fcreate-multiple-python-versions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmustafa-ali0%2Fcreate-multiple-python-versions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmustafa-ali0%2Fcreate-multiple-python-versions/lists"}