Skip to content

shaneknysh/pyenv-win

Repository files navigation

pyenv for Windows

The pyenv is a great tool. I ported it to Windows.

License: MIT GitHub issues open

Introduction

The pyenv is a great tool, but it doesn't supports windowns platform, which was the same case in rbenv for ruby developers. After a bit of research and feedbacks from python developer loves to have such a feature for windows systems.

Found a similar system for rbenv-win for ruby developers. This project was forked from rbenv-win and modified for pyenv. Some commands doesn't implemented, but wouldn't be a problem in basic use.

pyenv

pyenv is a simple python version management tool. It lets you easily switch between multiple versions of Python. It's simple, unobtrusive, and follows the UNIX tradition of single-purpose tools that do one thing well.

pyenv-win does

   commands    List all available pyenv commands
   local       Set or show the local application-specific Python version
   global      Set or show the global Python version
   shell       Set or show the shell-specific Python version
   install     Install a Python version using python-build
   uninstall   Uninstall a specific Python version
   rehash      Rehash pyenv shims (run this after installing executables)
   version     Show the current Python version and its origin
   versions    List all Python versions available to pyenv
   exec        Runs an executable by first preparing PATH so that the selected Python

Installation

  • Installing by downloading zip file:
  1. Link: pyenv-win

  2. Extract to your %USERPROFILE%/.pyenv

  3. Add the following paths to your PATH ENVIRONMENT variable for accessing to pyenv command %USERPROFILE%\.pyenv\bin;%USERPROFILE%\.pyenv\shims;

    • ENVIRONMENT -> My Computer -> Propertires -> Advanced system settings -> Advanced -> Environment Variables -> PATH
  4. Open command prompt (new session) and type pyenv

  5. pyenv -> This will list the useful pyenv commands

Usage: pyenv <command> [<args>]

Some useful pyenv commands are:
   commands    List all available pyenv commands
   local       Set or show the local application-specific Python version
   global      Set or show the global Python version
   shell       Set or show the shell-specific Python version
   install     Install a Python version using python-build
   uninstall   Uninstall a specific Python version
   rehash      Rehash pyenv shims (run this after installing executables)
   version     Show the current Python version and its origin
   versions    List all Python versions available to pyenv
   exec        Runs an executable by first preparing PATH so that the selected Python

See `pyenv help <command>' for information on a specific command.
For full documentation, see: https://github.com/pyenv-win/pyenv-win#readme

Installation is done hurray...!

  • Installing by git:
  1. Clone the repository to the user profile
    git clone https://github.com/pyenv-win/pyenv-win.git %USERPROFILE%/.pyenv

  2. Add the following paths to your PATH ENVIRONMENT variable for accessing to pyenv command %USERPROFILE%\.pyenv\bin;%USERPROFILE%\.pyenv\shims;

    • ENVIRONMENT -> My Computer -> Propertires -> Advanced system settings -> Advanced -> Environment Variables -> PATH
  3. Open command prompt (new session) and type pyenv

  4. pyenv -> This will list the useful pyenv commands

Usage: pyenv <command> [<args>]

Some useful pyenv commands are:
   commands    List all available pyenv commands
   local       Set or show the local application-specific Python version
   global      Set or show the global Python version
   shell       Set or show the shell-specific Python version
   install     Install a Python version using python-build
   uninstall   Uninstall a specific Python version
   rehash      Rehash pyenv shims (run this after installing executables)
   version     Show the current Python version and its origin
   versions    List all Python versions available to pyenv
   exec        Runs an executable by first preparing PATH so that the selected Python

See `pyenv help <command>' for information on a specific command.
For full documentation, see: https://github.com/pyenv-win/pyenv-win#readme

Installation is done hurray...!

How it works

TBA

FAQ

  • Question: Does pyenv for windows support python2?
    Answer: Yes, We are supporting python2 from the version 2.0.1. We are supporting from 2.0.1 until the python.org officially removes.

  • Question: Does pyenv for windows support python3?
    Answer: Yes, we are supporting python3 from the version 3.0. We are supporting from 3.0 until the python.org officially removes.

How to contribute

  • Fork the project & clone locally.
  • Create an upstream remote and sync your local copy before you branch.
  • Branch for each separate piece of work. It's a good practise to write test cases.
  • Do the work, write good commit messages, and read the CONTRIBUTING file if there is one.
  • Test the changes by running test\test.bat --> TBA
  • Push to your origin repository.
  • Create a new Pull Request in GitHub.

Bug Tracker and Support

  • Please report any suggestions, bug reports, or annoyances with pyenv-win through the Github bug tracker.

License and Copyright

  • pyenv-win is licensed under MIT 2019

    License: MIT

Author and Thanks

pyenv-win was developed by Kiran Kumar Kotari

About

pyenv for Windows

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Visual Basic .NET 89.5%
  • Batchfile 8.7%
  • Python 1.7%
  • Shell 0.1%