The pyenv is a great tool. I ported it to Windows.
- Introduction
- pyenv
- pyenv-win does
- Installation
- How it works
- FAQ
- How to contribute
- Bug Tracker and Support
- License and Copyright
- Author and Thanks
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 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.
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
- Installing by downloading zip file:
-
Link: pyenv-win
-
Extract to your
%USERPROFILE%/.pyenv
-
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
-
Open command prompt (new session) and type
pyenv
-
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:
-
Clone the repository to the user profile
git clone https://github.com/pyenv-win/pyenv-win.git %USERPROFILE%/.pyenv
-
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
-
Open command prompt (new session) and type
pyenv
-
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...!
TBA
-
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.
- 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.
- Please report any suggestions, bug reports, or annoyances with pyenv-win through the Github bug tracker.
-
pyenv-win is licensed under MIT 2019
pyenv-win was developed by Kiran Kumar Kotari