Coder Social home page Coder Social logo

relepega / pvm Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 6.5 MB

Easily manage multiple python enviroments on your system

License: GNU General Public License v3.0

Go 99.08% Makefile 0.92%
cli manager python python2 python3 version windows go golang version-manager

pvm's Introduction

Python Version Manager

Python Version Manager (PVM for short) is a project that has been inspired by nvm for windows and aims to easily manage multiple python enviroments on your windows system.

pvm screenshot

Table of contents

How to use

This is a CLI application, so you need to open a terminal and use it from there.

Install

At the moment it is available only as a portable version and the installation process is not too complex:

  1. Download the latest version from here.
  2. Unzip the app where you won't move it never again until you uninstall it.
  3. Open a command prompt and navigate to the folder where you extracted PVM and run the command pvm install pvm.
  4. Wait until you see the successful installation message and then close the terminal.
  5. Reopen the terminal, type pvm and press enter. If the installation was successful then you will see an output like in this image.
  6. On Windows 11, open the Settings app and navigate to: Apps -> Advanced app settings -> App execution aliases, then turn off all the entries that have python or python.exe. Like in this image. Profit!
  7. Profit ๐ŸŽ‰!

Please keep in mind that you must install the app for each user you want to use it with.

Here's a video tutorial: pvm installation video-tutorial

Uninstall

It's basically the same process as the installation one:

  1. Open the app folder.
  2. Open a command prompt and navigate to the folder where you extracted PVM and run the command pvm uninstall pvm.
  3. Wait until you see the successful uninstallation message and then close the terminal.
  4. Reopen the terminal, type pvm -h and press enter. If pvm was uninstalled successfully now in the terminal you should see an error.
  5. Profit ๐ŸŽ‰!
  6. (optional) On Windows 11, open the Settings app and navigate to: Apps -> Advanced app settings -> App execution aliases, then turn on all the entries that have python or python.exe. Like in the this image. Profit!
  7. (optional) Please let me know why you decided to uninstall pvm: fill this form and i'll be here to read your struggles with pvm.

Please keep in mind that you must uninstall the app for each user you want to use it with.

Developing

Any type of contribution is well accepted, just create a PR and i'll review it as soon as possible!

Get started

  1. Make sure to have these tools installed on your system
  • Go 1.21.0 (minimum required version)
  • Git
  • GNU Make
  1. When you're sure that you have installed them correctly, proceed by cloning the repository

$ git clone https://github.com/Relepega/PythonVersionManager.git

  1. Hop into the project directory

$ cd pvm

  1. Install the dependencies

$ GO111MODULE=on go mod get all ./...

  1. You're now ready to go! If you want to build from source because you don't trust some random guy on the internet, run the build script:

make build

FAQ

Why reinvent the wheel when pyenv-win exists and does the same thing?

Forgive my ignorance, but i didn't know of its existence until the creation of this project.

What do I have to do if I encounter this error? Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

On Windows 11, open the Settings app and navigate to: Apps -> Advanced app settings -> App execution aliases, then turn off all the entries that have python or python.exe. Like in the photo. Profit!

remove execution aliases w11

pvm's People

Contributors

relepega avatar

Stargazers

Mirage Abeysekara avatar Giovanni Martire avatar

Watchers

 avatar Christopher Domenicano avatar

pvm's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.