Code Monkey home page Code Monkey logo

pyenv-win / pyenv-win Goto Github PK

View Code? Open in Web Editor NEW
4.1K 33.0 385.0 3.59 MB

pyenv for Windows. 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.

Home Page: https://pyenv-win.github.io/pyenv-win

License: MIT License

Batchfile 11.83% Python 31.28% VBScript 53.14% PowerShell 3.74%
pyenv pyenv-for-windows python-version-management pyenv-alternative windows-python pyenv-win pyenv-windows windows-pyenv python

pyenv-win's Introduction

pyenv for Windows

pyenv is an amazing tool used to manage multiple versions of python in your machine. We have ported it to Windows. We need your thoughts to improve this library and your feedback helps to grow the project.

For existing python users, we support installation via pip.

Contributors and Interested people can join us on @Slack. Your help keeps us motivated!

pytest License: MIT GitHub issues open Downloads Rate this package

Introduction

pyenv for python is a great tool but, like rbenv for ruby developers, it doesn't directly support Windows. After a bit of research and feedback from python developers, I discovered they wanted a similar feature for Windows systems.

This project was forked from rbenv-win and modified for pyenv. It is now fairly mature, thanks to help from many different contributors.

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.

Quick start

  1. Install pyenv-win in PowerShell.

    Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1" -OutFile "./install-pyenv-win.ps1"; &"./install-pyenv-win.ps1"
  2. Reopen PowerShell

  3. Run pyenv --version to check if the installation was successful.

  4. Run pyenv install -l to check a list of Python versions supported by pyenv-win

  5. Run pyenv install <version> to install the supported version

  6. Run pyenv global <version> to set a Python version as the global version

  7. Check which Python version you are using and its path

    > pyenv version
    <version> (set by \path\to\.pyenv\pyenv-win\.python-version)
    
  8. Check that Python is working

    > python -c "import sys; print(sys.executable)"
    \path\to\.pyenv\pyenv-win\versions\<version>\python.exe
    

pyenv-win commands

   commands     List all available pyenv commands
   local        Set or show the local application-specific Python version
   latest       Print the latest installed or known version with the given prefix
   global       Set or show the global Python version
   shell        Set or show the shell-specific Python version
   install      Install 1 or more versions of Python
   uninstall    Uninstall 1 or more versions of Python
   update       Update the cached version DB
   rehash       Rehash pyenv shims (run this after switching Python versions)
   vname        Show the current Python version
   version      Show the current Python version and its origin
   version-name Show the current Python version
   versions     List all Python versions available to pyenv
   exec         Runs an executable by first preparing PATH so that the selected 
                Python version's `bin' directory is at the front
   which        Display the full path to an executable
   whence       List all Python versions that contain the given executable

Installation

Currently we support following ways, choose any of your comfort:

Please see the Installation page for more details.

Validate installation

  1. Reopen the command prompt and run pyenv --version
  2. Now type pyenv to view it's usage

If you are getting "command not found" error, check the below note and manually check the settings

For Visual Studio Code or another IDE with a built in terminal, restart it and check again


Manually check the settings

Ensure all environment variables are properly set with high priority via the GUI:

This PC
   → Properties
      → Advanced system settings
         → Advanced → Environment Variables...
            → PATH

NOTE: If you are running Windows 10 1905 or newer, you might need to disable the built-in Python launcher via Start > "Manage App Execution Aliases" and turning off the "App Installer" aliases for Python

Usage

  • To view a list of python versions supported by pyenv windows: pyenv install -l
  • To filter the list: pyenv install -l | findstr 3.8
  • To install a python version: pyenv install 3.5.2
    • Note: An install wizard may pop up for some non-silent installs. You'll need to click through the wizard during installation. There's no need to change any options in it. or you can use -q for quiet installation
    • You can also install multiple versions in one command too: pyenv install 2.4.3 3.6.8
  • To set a python version as the global version: pyenv global 3.5.2
    • This is the version of python that will be used by default if a local version (see below) isn't set.
    • Note: The version must first be installed.
  • To set a python version as the local version: pyenv local 3.5.2.
    • The version given will be used whenever python is called from within this folder. This is different than a virtual env, which needs to be explicitly activated.
    • Note: The version must first be installed.
  • After (un)installing any libraries using pip or modifying the files in a version's folder, you must run pyenv rehash to update pyenv with new shims for the python and libraries' executables.
    • Note: This must be run outside of the .pyenv folder.
  • To uninstall a python version: pyenv uninstall 3.5.2
  • To view which python you are using and its path: pyenv version
  • To view all the python versions installed on this system: pyenv versions
  • Update the list of discoverable Python versions using: pyenv update command for pyenv-win 2.64.x and 2.32.x versions

How to update pyenv

  • If installed via pip
    • Add your pyenv-win installation path to easy_install.pth file located in site-packages. This should make pip recognise pyenv-win as installed.
    • Get updates via pip pip install --upgrade pyenv-win
  • If installed via Git
    • Go to %USERPROFILE%\.pyenv\pyenv-win (which is your installed path) and run git pull
  • If installed via zip
    • Download the latest zip and extract it
    • Go to %USERPROFILE%\.pyenv\pyenv-win and replace the folders libexec and bin with the new ones you just downloaded
  • If installed via the installer
    • Run the following in a Powershell terminal: &"${env:PYENV_HOME}\install-pyenv-win.ps1"

Announcements

To keep in sync with pyenv linux/mac, pyenv-win now installs 64bit versions by default. To support compatibility with older versions of pyenv-win, we maintain a 32bit train (branch) as a separate release.

Both releases can install 64bit and 32bit python versions; the difference is in version names, for example:

  • 64bit-train (master), i.e. pyenv version 2.64.x
> pyenv install -l | findstr 3.8
....
3.8.0-win32
3.8.0
3.8.1rc1-win32
3.8.1rc1
3.8.1-win32
3.8.1
3.8.2-win32
3.8.2
3.9.0-win32
3.9.0
....
  • 32bit-train, i.e. pyenv version 2.32.x
> pyenv install -l | findstr 3.8
....
3.8.0
3.8.0-amd64
3.8.1rc1
3.8.1rc1-amd64
3.8.1
3.8.1-amd64
3.8.2
3.8.2-amd64
....

Support for Python versions below 2.4 have been dropped since their installers don't install "cleanly" like versions from 2.4 onward and they're predominantly out of use/support in most environments now.

FAQ

Please see the FAQ page.

Changelog

Please see the Changelog page.

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 good practice 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 tests\bat_files\test_install.bat and tests\bat_files\test_uninstall.bat
  • 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 and Contributors Thanks for all Contributors and Supports for patience for the latest major release.

pyenv-win's People

Contributors

aak1247 avatar awkimball avatar bazzilic avatar brandonaut avatar codemasteryi avatar darsstar avatar dedale avatar f0ff886f avatar felixsempebourdon-opalrt avatar gfesatidis avatar harvimt avatar hoang-himself avatar jorgeivanburgosaguilar avatar joshkautz avatar keithballard avatar kirankotari avatar lanethegreat avatar masbicudo avatar meichthys avatar milly avatar neverendingqs avatar ranv1r avatar rasa avatar sworisbreathing avatar tak-sakumoto avatar therewillbeblood avatar tillerburr avatar udoyen avatar uhx avatar yoavst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pyenv-win's Issues

bug: Trying to install python 3.8.0 but rehash is not working, asks for python 3.6.9 that pyenv doesn't serve (Or has a Windows installer)

Describe the bug
Trying to install python 3.8.0, but when rehash asks for python 3.6.9, tried to install via pyenv, but doesn't exists in the list. And there is no windows download available on https://www.python.org/downloads/windows/

To Reproduce
Steps to reproduce the behavior:

  1. Open admin command line terminal in Windows 10
  2. git clone https://github.com/pyenv-win/pyenv-win.git %USERPROFILE%/.pyenv
  3. Set System variable PYENV to %USERPROFILE%\.pyenv\pyenv-win
  4. Add to System variable PATH to %PYENV%\bin; and %PYENV%\shims; (no spaces)
  5. Open Admin command prompt and go to .pyenv directory
  6. pyenv rehash
  7. output from terminal: pyenv specific python requisite didn't meet. Project is using different version of python. Install python '3.6.9' by typing: 'pyenv install 3.6.9'
  8. pyenv install 3.6.9
  9. :: [Info] :: Mirror: https://www.python.org/ftp/python pyenv-install: definition not found: 3.6.9

See all available versions with pyenv install --list'.10.pyenv install --list`
11. version 3.6.9 is not in the list.

Expected behavior
Python would rehash and set 3.8.0 as default (pip commands should also work after that, as pip wasn't working).

Desktop:

  • OS: Windows 10 Version 10.0.18363 Build 18363
  • Tools used: command prompt
  • Python: 3.8.0

Additional context
Tried downloading specific version from https://www.python.org/downloads/windows/, but there is no 3.6.9 release for windows.

When I do a rehash outside of a folder it gives no output, but does set the python version.
I also disabled the python to the Microsoft store, and when I type python or py it does spawn a 3.8.0 CLI.

However because I think that the rehash is not working correctly the pip command is not available. However I have no idea why.

Anyone that can help me with this?

Pyenv + pipenv could end up using different Python versions until you remove the virtual environment

Describe the bug
pyenv does not seem to change the python interpreter for a specific project/folder

To Reproduce
Steps to reproduce the behavior:

  1. Install multiple Python versions (e.g. 3.7.4, 3.6.8)
    1

  2. cd into a specific project and switch the python interpreter to 3.6.8

pyenv local 3.6.8
  1. Using pyenv exec command shows that pyenv picked up the correct Python version. However, when I run any python commands in that folder, I get the system default interpreter (3.7.4)
    python commands use the system default interpreter

Expected behavior
I was expecting python 3.6.8 to be used in the selected folder/project given that I specified 3.6.8 when I ran pyenv local 3.6.8

Screenshots
I attached screenshots to the steps

Desktop (please complete the following information):

  • OS: Windows 10
  • Tools used: Powershell
  • Version: 1.2.2

Additional context
It seems that pyenv-win is missing the pyenv init command which is required in the Mac/Linux installation steps. I am guessing that the lack of pyenv init is causing this issue.

feature: Ambiguity in installation instructions 'ENVIRONMENT PATH'

Is your feature request related to a problem? Please describe.
I'm not sure which PATH the installation instructions refer to here, it refers to adding a string to your ENVIRONMENT PATH, but in Windows there are two path variables in the environment variables window. One in 'User variables for XXXX', one in 'System Variables'. Which Path should I add this to?

Describe the solution you'd like
Clearer instructions, ENVIRONMENT PATH does not actually refer to anything in Windows, as it should either be 'User Variables Path' or 'System Variables Path'.

Wrong path in documentation

The path specified to let the terminal invoke pyenv is incorrect (see https://pypi.org/project/pyenv-win/).
It's suggested as: %USERPROFILE%\.pyenv\pyenv-win\bin but the correct (at least when cloning from github) is %USERPROFILE%\.pyenv\pyenv-win\pyenv-win\bin.

Also %USERPROFILE%\.pyenv\pyenv-win\shims has the same problem.

feature: Allow for wildcard filtering of the install -list command

Is your feature request related to a problem? Please describe.
The list of versions is long and oddly sorted

Describe the solution you'd like
Allow for the filtering of the list

for example

pyenv install -l 2.7*

2.7.16
2.7.16.amd64
2.7.15
2.7.15.amd64
2.7.15rc1
2.7.15rc1.amd64
2.7.14
2.7.14.amd64
2.7.14rc1
2.7.14rc1.amd64
2.7.13
2.7.13.amd64
2.7.13rc1
2.7.13rc1.amd64
2.7.12
2.7.12.amd64
2.7.12rc1
2.7.12rc1.amd64
2.7.11
2.7.11.amd64
2.7.11rc1
2.7.11rc1.amd64
2.7.10
2.7.10.amd64
2.7.10rc1
2.7.10rc1.amd64
2.7.9
2.7.9.amd64
2.7.9rc1
2.7.9rc1.amd64
2.7.8
2.7.8.amd64
2.7.7
2.7.7.amd64
2.7.7rc1
2.7.7rc1.amd64
2.7.6
2.7.6.amd64
2.7.5
2.7.5.amd64
2.7.4
2.7.4.amd64
2.7.3
2.7.3.amd64
2.7.2
2.7.2.amd64
2.7.1
2.7.1.amd64
2.7
2.7.amd64

bug: version 1.2.3 doesn't run

Describe the bug
Installed according to document today on Win10 system without any prior versions of pyenv. Typing pyenv produces this error: ....\pyenv.vbs(182, 6) Microsoft VBScript runtime error: File not found.
Also: pyenv --version produces:

pyenv --version

PYENV variable is not set, recommended to set the variable.
pyenv "1.2.3"
While version 1.2.2 just says:
pyenv 1.2.2

Installed version 1.2.2 and everything works as expected.

To Reproduce
Steps to reproduce the behavior:

  1. pip3 install pyenv-win --target %USERPROFILE%/.pyenv
  2. open new command prompt
  3. pyenv

Desktop (please complete the following information):

  • OS: Win10 Pro
  • Tools used from cmd.exe

code
Error in pyenv.vbs is at:

WScript.echo "pyenv " & objfs.OpenTextFile(strPyenvParent & "\.version").ReadAll

After install there is no "version" or ".version" file.

bug: Bash unable to execute pipenv command when installed via pyenv-win version of pip

Describe the bug
When trying to work with pipenv installed via pip from a pyenv-win installed version of Python 3, its throws the error bash: pipenv: command not found.

To Reproduce
Steps to reproduce the behavior:

  1. Run pyenv install 3.8.0
  2. Run pip install pipenv
  3. See pip warning WARNING: The script {scriptName} is installed in {Scripts dir for pyenv-win install} which is not in PATH. Consideradding this directory to PATH or, if you prefer to suppress this warning use --no-warn-script-location. for pipenv-resolver.exe, pipenv.exe executables
  4. Run pipenv install requests
  5. See error bash: pipenv: command not found

Expected behavior
Expected behaviour would be to install requests package using pipenv and simultaneously create virtual environment

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Tools used: git bash
  • Version: 1.2.2

Additional context
I suspect this is issue is an artifact of using the shims for controlling python and pip commands. While pipenv installs, it is not reflected in the path (hence the pip warning) nor by the shims.

bug: After selecting existing Python version, site-packages not found

pyenv-win was installed. It did not recognize the already installed version 2.7.15. I typed
pyenv install 2.7.15
and it installed it again. I selected it as the local version and attempted to run an existing Python script, but got the error that
install serial
failed because serial wasn't found. That package is from PySerial, which had previously been installed Python 2.7 (before pyenv). pip list shows pyserial as being installed.

I think the selected version of Python should link to the packages that had been installed for that version.

A second test was run on Python 3.7.2.

After switching to version 3.7.2, which I installed through pyenv, I used pip to install PySerial. pip then showed it as installed. I again ran a script which failed again in the same manner because serial wasn't found. The difference here is that PySerial was installed after version 3.7.2 was installed through pyenv, but it didn't seem to make a difference.

If pip shows a package as installed with a version selected by pyenv, running a script using that package should work.

bug: Can't install python 3.6.9/3.6.10

Describe the bug
Can't install python 3.6.x

To Reproduce
Steps to reproduce the behavior:

  1. Run the following command 'pyenv install 3.6.10'
  2. See error
C:\Users\FRUP67305>pyenv install 3.6.10-amd64
:: [Info] ::  Mirror: https://www.python.org/ftp/python
:: [Downloading] ::  3.6.10-amd64 ...
:: [Downloading] ::  From https://www.python.org/ftp/python/3.6.10/python-3.6.10-amd64.exe
:: [Downloading] ::  To   C:\Users\FRUP67305\.pyenv\pyenv-win\install_cache\python-3.6.10-amd64.exe
:: [ERROR] :: 404 :: file not found

Expected behavior
It should install python version.

Desktop (please complete the following information):

  • OS: Windows 10
  • Tools used: cmd.exe
  • Version: git master

bug: Python installer asks for user input

To Reproduce
Steps to reproduce the behavior:

  1. install pyenv-win
  2. pyenv install X-amd64, with X being a valid version (tested with 3.5.4, 3.6.0, 3.7.2)

Expected behavior
Installer should get downloaded, then run in background, without any user interaction

Desktop (please complete the following information):

  • OS: Windows 10
  • Tools used: ConEmu, msys2 bash
  • Version: current master, 02be66e

Additional context
It seems like adding /quiet to the installer call is enough.

bug: Scripts folder not added to path env variable after using pip install

Describe the bug
A user cannot access the scripts here in this directory (assuming 3.5.0 is current global)

%USERPROFILE%.pyenv\pyenv-win\versions\3.5.0\Scripts

To Reproduce
Steps to reproduce the behavior:

  1. pip install jupyter ipython
  2. jupyter notebook

Result
3. jupyter is not in path

Expected behavior
jupyter or other scripts must be in path

Desktop

  • OS: Windows 10
  • command prompt or Powershell
  • pyenv

bug: Doesnt work on 32-bit version Windows 7. cmd 'pyenv' is not recognized as an internal or external command, operable program or batch file.

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Commands entered '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Windows 7]
  • Tools used [e.g. command prompt, git bash]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

feature:pyenv which python (contributions needed)

Describe the bug
A clear and concise description of what the bug is.
the command "pyenv which python" always return "To be added"

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Commands entered '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.
图片

Desktop (please complete the following information):

  • OS: [e.g. Windows 10]
  • Tools used [e.g. command prompt, git bash] command prompt
  • Version [e.g. 22] 1.2.4

Additional context
Add any other context about the problem here.

feature:Anaconda releases?

Curiously, pyenv install --list does not list any Anaconda versions. AFAIK, the linux flavour of pyenv does. What's going on?

bug: Quoted argument containing spaces gets passed as multiple arguments when running from Git Bash

Describe the bug
From git bash, when I run a globally installed package, a quoted argument containing spaces gets passed down as multiple arguments, e.g.: <package> "a b c" will make the shim try to run <package> a b c, which obviously is not what I want. This behaviour is observed in the bash version of the shim. If I use the batch version, i.e. <package>.bat "a b c", it works as expected. This could be a limitation on how bash processes arguments (from my quick research online).

To Reproduce
Steps to reproduce the behavior:

  1. Open Git Bash
  2. Set pyenv to use your version of choice
  3. Run python -c "print('a b c')" and get a parsing error
  4. Run python.bat -c "print('a b c')" and expect it to work

Expected behavior
Ideally, running either the bash or batch versions of the shim should give the same results.

Example

$ python -c "print('a b c')"
  File "<string>", line 1
    print('a
           ^
SyntaxError: EOL while scanning string literal

$ python.bat -c "print('a b c')"
a b c

Desktop:

  • OS: Windows 10
  • Tools used: git bash
  • Version: pyenv 1.2.2

Additional context
I got into this problem by trying to download files through awscli that contained spaces in their names.
As a workaround, I changed my script to run aws.bat instead of aws.

bug: concurrent pyenv pythons are not working

Is your feature request related to a problem? Please describe.
Assume two python versions 2 and 3. If pyenv version is set to 3, then pyenv rehash creates shims based on version 3. But if a script exists in version 2, it does not get a shim and cannot be found when running in the context of version 2

Describe the solution you'd like
pyenv rehash creates shims for all versions

Describe alternatives you've considered
Running pyenv rehash all the time. Creating a fake script so that it exists in both versions and therefore has a shim made

Additional context

bug: cannot set global python

Describe the bug
Global command does not switch version

To Reproduce
Steps to reproduce the behavior:

  1. Go to console
  2. run python --version and see Python 3.7.5
  3. run pyenv global 3.7.4
  4. run python --version and see Python 3.7.5

Expected behavior

  1. Go to console
  2. run python --version and see Python 3.7.5
  3. run pyenv global 3.7.4
  4. run python --version and see Python 3.7.4

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Tools used powershell or command prompt
  • Version 1.2.2

Additional context
Add any other context about the problem here.

bug: pyenv version fails

Describe the bug
After installing 3.7.2 and 2.7.16, and running pyenv version, a cryptic error is reported.

To Reproduce
Steps to reproduce the behavior:

  1. pyenv install 3.7.2
  2. pyenv install 2.7.16
  3. Type: pyenv version
  4. A cryptic error appears:
    C:\Users\ex\.pyenv\pyenv-win\libexec\pyenv.vbs(77, 25) version not found: please set 'pyenv global <version>'

Expected behavior
The version number of the first version of python installed is displayed. If that's not acceptable, then perhaps a less error-y looking message:

No global python version has been set yet. Please set the global version by typing:
pyenv global 3.7.2

Desktop (please complete the following information):

  • OS: Windows 10

Win10 pip installation failure

I tried the pip installation on my Win10 PC and continue to get pyenv is not recognized as an internal or external command, operable program or batch file. I did notice and corrected the %USERPROFILE% entries put in path as they translated into the Administrator account used to escalate privileges when trying to edit the PATH. I have rebooted and even drilled down to the bin folder to run pyenv --version which does then return 1.2.2 but it will not run from any other location.

bug: Unicode characters as command line arguments do not work as expected.

Describe the bug
Pyenv does not handle unicode arguments passed to an executable correctly.

To Reproduce
Steps to reproduce the behavior:
0. Make sure your console has a Unicode font (such as Deja Vu Sans Mono), the default font (Courier New) does not support some unicode characters.

  1. write a simple program to test sys.argv is passed in correctly (argvtest.py)
import sys
print(sys.argv[1])

Run it with some unicode arguments, and see that they are mangled.

Capture

Expected behavior
Unicode command line arguments are passed from are expected to work (on python3 at least)

Capture2

Screenshots
Included above.

Desktop (please complete the following information):

  • OS: Windows 10
  • cmd.exe (powershell exhibits slightly different behavior with the snowman emoji, and I can't tell why, so cmd.exe was used which shows the problem clearly)
  • pyenv and python versions

Additional context
Add any other context about the problem here.

bug: Can't Install Versions Behind Proxy

Thanks so much for forking and supporting this project, this is really awesome! ❤️

Describe the bug
Pyenv is not able to download the install versions of python behind a corporate proxy server.

To Reproduce
Steps to reproduce the behavior:

C:\Users\user>set HTTPS_PROXY=address:port
C:\Users\user>set HTTP_PROXY=address:port
C:\Users\user>pyenv install 3.7.2
:: [Downloading] ::  3.7.2 ...
The server name or address could not be resolved

Expected behavior
Download and install the requested version using the proxy server.

Desktop (please complete the following information):

  • OS: Windows 10
  • Tools used: Command Prompt, PowerShell

bug: pyenv install python via secure channel support

An error occurred in the secure channel support

I succesfully installed pyenv version 1.1.2 on my Dell Lattitude E5440 with Windows 7 pro but when I try to install a Python version (tried several, first Python 3.7.2-amd64 and then 3.7.1) i get the message:

C:\Users\Myname>Pyenv install 3.7.2-amd64
::[Downloading] :: 3.7.2-amd64 ...
An error occurred in the secure channel support

Any idea how I could solve that?

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Commands entered '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Windows 7]
  • Tools used [e.g. command prompt, git bash]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Local version is not enabled in PowerShell

Describe the bug
Setting up local python version doesn't activate it as described in the docs

To Reproduce
Steps to reproduce the behavior:

  1. C:\...> pyenv versions
    2.7.17
    * 3.8.1 (set by C:...)
  2. C:\...\test> pyenv local 2.7.17
  3. C:\...\test> pyenv version
    2.7.17 (set by C:\...\test\.python-version)
  4. C:\...\test> python --version
    Python 3.8.1

Expected behavior
A correct version of Python is enabled

Screenshots

Desktop (please complete the following information):

  • OS: Window 10 Professional
  • PowerShell

feature: Option to install pyenv-win in a location for all users

The current installation instructions specify that pyenv-win be installed in the current user's space, %USERPROFILE%. If pyenv is needed for multiple accounts on the computer, multiple installations, including multiple copies of the installed compiler would be installed.

I suggest a default installation for all users, so that only once copy of pyenv and one copy of each Python version is needed to save installation time and disk space.

feature:pyenv does not detect currently installed versions

Describe the bug
When Python is already installed, pyenv does not recognise the current installation

To Reproduce
Steps to reproduce the behavior:

  1. Install Python
  2. Install pyenv
  3. pyenv versions

Expected behavior
See currently installed version.

Desktop (please complete the following information):

  • OS: Windows 10
  • Version: 1.2.2

Error: Pip not found

You probably should mention what to do if pip isn't on the ENVIRONMENT PATH. Those commands won't work if they're just copy/pasted (on some computers) Maybe ... something like this between lines 55 and 56 of the README.md?

  • If pip isn't on your PATH, you'll need to preface these commands with python -m ...

Chocolatey package doesn't setup ENV variables

I don't know if this is the right place to post this issue. If not, please excuse me and point me toward the right direction.

If I install pyenv with choco install pyenv-win on a Windows 10 machine, the installation script doesn't setup PYENV variable. Nor add bin and shims to PATH. Anyway once properly set it seems still not to work.

This is the package: https://chocolatey.org/packages/pyenv-win.

bug: Wrong python version found

Describe the bug
pyenv cannot find the installed version (3.7.2) but says version 3.5.6 is not installed

To Reproduce
Steps to reproduce the behavior:

  1. pyenv install 3.7.2
  2. pyenv global 3.7.2
  3. pyenv rehash
  4. python
  5. The message:
    C:\Users\ex\.pyenv\pyenv-win\libexec\pyenv.vbs(92, 61) pyenv: version '3.5.6' not installed
    is displayed

Expected behavior
Python 3.7.2 is run

feature: pyenv virtualenv command

Is your feature request related to a problem? Please describe.
pyenv virtualenv command is not available.

Describe the solution you'd like
This command should be included in pyenv-win project, and behaves like https://github.com/pyenv/pyenv-virtualenv plugin.

Describe alternatives you've considered
I have tried to create a virtualenv with the following command

pyenv local 3.5.4-amd64
python -m venv %USERPROFILE%\.pyenv\pyenv-win\versions\3.5.4-amd64-ddb

But then, pyenv is broken because a virtualenv includes python entrypoint into Scripts directory. It works after running pyenv rehash

bug: Setting PYENV accoring to installation inscructions didn't work

Describe the bug
Following the instructions currently given in the readme didn't set the PATH properly for me. Apparently PYENV is still undefined when PATH is set because setting PYENV and then using PYENV in the PATH variable doesn't work.

To Reproduce
Steps to reproduce the behavior (straight from README):

  1. Add a new variable in ENVIRONMENT with name: PYENV value: %USERPROFILE%.pyenv\pyenv-win (I added this as a user variable)
  2. Now add the following paths to your ENVIRONMENT PATH variable in order to access the pyenv command (don't forget to separate with semicolons):
    %PYENV%\bin
    %PYENV%\shims
    (I added these to the user path)
  3. Open new command prompt.
  4. pyenv - > 'pyenv' is not recognized as an internal or external command,
    operable program or batch file.
  5. echo %PYENV% -> C:\Users\myuser.pyenv\pyenv-win (<- this is right)
  6. echo %PATH% -> cut\for\brevity; %PYENV%\bin;%PYENV%\shims; C:\Users\myuser\AppData\Local\Microsoft\WindowsApps

Expected behavior
A clear and concise description of what you expected to happen.

  1. open Command Prompt
  2. pyenv -> pyenv usage info
  3. echo %PYENV% -> C:\Users\myuser.pyenv\pyenv-win
  4. echo %PATH% -> cut\for\brevity; C:\Users\myuser.pyenv\pyenv-win\bin;C:\Users\myuser.pyenv\pyenv-win\shims; C:\Users\myuser\AppData\Local\Microsoft\WindowsApps

Desktop (please complete the following information):

  • OS: Windows 10 May 2019
  • Tools used: command prompt

Additional context
Through some testing I discovered that it does appear to be an issue of variable order, since PATH comes before PYENV alphabetically.
Putting PYENV in the system variables and putting PYENV in the user path worked as expected (since system variables are computed before user ones).
Using the system PATH also failed (since PYENV comes after PATH, just like when using the user variable).
Making a variable (e.g. APYENV) that comes before PATH works, in user or system (or mixed).

The last option is what I'm currently doing, with APYENV as a user variable, and including it in the user PATH. I also have PYENV set so it is also available.

This is more of a Windows (or user error) issue, but as a new-to-Windows-cmd user (long live the Unix terminal!...) I spent far too long trying to figure this out after following the instructions provided to the letter, so updating the instructions for other new users who don't know the ins and outs of the Windows command line/environment variables would be nice.

bug: pyenv global fails to place python in path

Describe the bug
Running pyenv global 3.7.2 fails to place python in path

To Reproduce

  1. pyenv install 3.7.2
  2. pyenv global 3.7.2
  3. python --version
  4. The message: python' is not recognized as an internal or external command, operable program or batch file. appears
  5. where python
  6. The message: INFO: Could not find files for the given pattern(s). appears
  7. where python.exe
  8. The message: INFO: Could not find files for the given pattern(s). appears

Expected behavior

  1. python --version
    Expected output:
    Python 3.7.2
  2. where python
    Expected output:
C:\Users\ex\.pyenv\pyenv-win\shims\python
C:\Users\ex\.pyenv\pyenv-win\shims\python.exe
C:\Users\ex\.pyenv\pyenv-win\shims\python.bat
  1. where python.exe
    Expected output:
C:\Users\ex\.pyenv\pyenv-win\shims\python
C:\Users\ex\.pyenv\pyenv-win\shims\python.exe

Desktop (please complete the following information):

  • OS: Windows 10

bug: Installed python doesn't start

I've installed (via pyenv-win) python 2.7.16.amd64. Pyenv was installed via github (first attempt) than unzipping the archive.

  1. Install pydev via github or zip file using PowerShell or Git Bash.
  2. pydev install 2.7.16.amd64
  3. pydev global 2.7.16.amd64
  4. Restart the shell,
  5. python -V

Python executable is not launched.

  • OS: Windows 10
  • Tools used: Power Shell / Git Bash

bug: Cant's finish installing of pyenv-win

Hello.
I tried to install pyenv-win via pip and download them via git.
But after I edit a Path variable in environment variables window and placed two strings: "%USERPROFILE%.pyenv\pyenv-win\bin;%USERPROFILE%.pyenv\pyenv-win\shims;" at the beginning of Environment variable (NOT system variable) if I enter pyenv --version in cmd I see message like "there no command pyenv"

bug: Error 0x80070666: Cannot install a product when a newer version is installed.

I am using Python 3.7.4 for Windows and trying to install an environment using pyenv-win pip package.

When I execute this command pyenv install 3.7.2-amd64 I get an error saying that Python is already installed.

[663C:4B0C][2019-07-09T16:40:34]i001: Burn v3.11.1.2318, Windows v10.0 (Build 16299: Service Pack 0), path: C:\WINDOWS\Temp\{B1E29090-01AD-42A3-B761-824CC036DFEB}\.cr\python-3.7.2-amd64.exe
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing string variable 'ActionLikeInstalling' to value 'Installing'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing string variable 'ActionLikeInstallation' to value 'Setup'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing string variable 'ShortVersion' to value '3.7'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'ShortVersionNoDot' to value '37'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing string variable 'WinVer' to value '3.7'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'WinVerNoDot' to value '37'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'InstallAllUsers' to value '0'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'InstallLauncherAllUsers' to value '1'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing string variable 'TargetDir' to value ''
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing string variable 'DefaultAllUsersTargetDir' to value '[ProgramFiles64Folder]Python[WinVerNoDot]'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing string variable 'TargetPlatform' to value 'x64'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing string variable 'DefaultJustForMeTargetDir' to value '[LocalAppDataFolder]Programs\Python\Python[WinVerNoDot]'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing string variable 'OptionalFeaturesRegistryKey' to value 'Software\Python\PythonCore\[WinVer]\InstalledFeatures'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing string variable 'TargetDirRegistryKey' to value 'Software\Python\PythonCore\[WinVer]\InstallPath'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing string variable 'DefaultCustomTargetDir' to value ''
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing string variable 'InstallAllUsersState' to value 'enabled'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing string variable 'InstallLauncherAllUsersState' to value 'enabled'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing string variable 'CustomInstallLauncherAllUsersState' to value '[InstallLauncherAllUsersState]'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing string variable 'TargetDirState' to value 'enabled'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing string variable 'CustomBrowseButtonState' to value 'enabled'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'Include_core' to value '1'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'Include_exe' to value '1'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'Include_dev' to value '1'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'Include_lib' to value '1'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'Include_test' to value '1'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'Include_doc' to value '1'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'Include_tools' to value '1'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'Include_tcltk' to value '1'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'Include_pip' to value '1'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'Include_launcher' to value '1'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing string variable 'Include_launcherState' to value 'enabled'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'Include_symbols' to value '0'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'Include_debug' to value '0'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'LauncherOnly' to value '0'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'DetectedLauncher' to value '0'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'DetectedOldLauncher' to value '0'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'AssociateFiles' to value '1'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'Shortcuts' to value '1'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'PrependPath' to value '0'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'CompileAll' to value '0'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing numeric variable 'SimpleInstall' to value '0'
[663C:4B0C][2019-07-09T16:40:34]i000: Initializing string variable 'SimpleInstallDescription' to value ''
[663C:4B0C][2019-07-09T16:40:34]i009: Command Line: '-burn.clean.room=C:\Users\user\AppData\Local\Programs\Python\Python37\Lib\site-packages\pyenv-win\install_cache\python-3.7.2-amd64.exe -burn.filehandle.attached=564 -burn.filehandle.self=572 InstallAllUsers=0 Include_launcher=0 Include_test=0 SimpleInstall=1 TargetDir=C:\Users\user\AppData\Local\Programs\Python\Python37\Lib\site-packages\pyenv-win\versions\3.7.2-amd64'
[663C:4B0C][2019-07-09T16:40:34]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\user1\AppData\Local\Programs\Python\Python37\Lib\site-packages\pyenv-win\install_cache\python-3.7.2-amd64.exe'
[663C:4B0C][2019-07-09T16:40:34]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Users\user1\AppData\Local\Programs\Python\Python37\Lib\site-packages\pyenv-win\install_cache\'
[663C:4B0C][2019-07-09T16:40:35]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\user1\AppData\Local\Temp\Python 3.7.2 (64-bit)_20190709164035.log'
[663C:4B0C][2019-07-09T16:40:35]i000: Setting string variable 'WixBundleName' to value 'Python 3.7.2 (64-bit)'
[663C:4B0C][2019-07-09T16:40:35]i000: Setting string variable 'WixBundleManufacturer' to value 'Python Software Foundation'
[663C:4B0C][2019-07-09T16:40:35]i000: Setting numeric variable 'CRTInstalled' to value 1
[663C:67A8][2019-07-09T16:40:35]i000: Did not find C:\Users\user1\AppData\Local\Programs\Python\Python37\Lib\site-packages\pyenv-win\install_cache\unattend.xml
[663C:67A8][2019-07-09T16:40:35]i000: Setting numeric variable 'InstallAllUsers' to value 0
[663C:67A8][2019-07-09T16:40:35]i000: Setting numeric variable 'Include_launcher' to value 0
[663C:67A8][2019-07-09T16:40:35]i000: Setting numeric variable 'Include_test' to value 0
[663C:67A8][2019-07-09T16:40:35]i000: Setting numeric variable 'SimpleInstall' to value 1
[663C:67A8][2019-07-09T16:40:35]i000: Setting string variable 'TargetDir' to value 'C:\Users\user1\AppData\Local\Programs\Python\Python37\Lib\site-packages\pyenv-win\versions\3.7.2-amd64'
[663C:67A8][2019-07-09T16:40:35]i000: Setting string variable 'ActionLikeInstalling' to value 'Installing'
[663C:67A8][2019-07-09T16:40:35]i000: Setting string variable 'ActionLikeInstallation' to value 'Setup'
[663C:67A8][2019-07-09T16:40:35]i000: Setting version variable 'WixBundleFileVersion' to value '3.7.2150.0'
[663C:67A8][2019-07-09T16:40:35]i000: Target OS is Windows 7 SP1 or later
[663C:4B0C][2019-07-09T16:40:35]i100: Detect begin, 52 packages
[663C:4B0C][2019-07-09T16:40:35]i107: Detected forward compatible bundle: {8ae589dd-de2e-42cd-af56-102374115fee}, type: Upgrade, scope: PerUser, version: 3.7.4150.0, enabled: No
[663C:4B0C][2019-07-09T16:40:35]i102: Detected related bundle: {8ae589dd-de2e-42cd-af56-102374115fee}, type: Upgrade, scope: PerUser, version: 3.7.4150.0, operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i103: Detected related package: {92A73F83-DC16-4316-945A-B66BC12362A7}, scope: PerUser, version: 3.7.4150.0, language: 0 operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i103: Detected related package: {92A73F83-DC16-4316-945A-B66BC12362A7}, scope: PerUser, version: 3.7.4150.0, language: 0 operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i103: Detected related package: {B86709C3-962E-4C62-BF25-CF8D06267D72}, scope: PerUser, version: 3.7.4150.0, language: 0 operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i103: Detected related package: {B86709C3-962E-4C62-BF25-CF8D06267D72}, scope: PerUser, version: 3.7.4150.0, language: 0 operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i103: Detected related package: {6DDB726E-09CE-44B4-A129-B62AD1604A95}, scope: PerUser, version: 3.7.4150.0, language: 0 operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i103: Detected related package: {6DDB726E-09CE-44B4-A129-B62AD1604A95}, scope: PerUser, version: 3.7.4150.0, language: 0 operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i103: Detected related package: {5BF79310-A787-430F-93DD-CC8A9787679D}, scope: PerUser, version: 3.7.4150.0, language: 0 operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i103: Detected related package: {5BF79310-A787-430F-93DD-CC8A9787679D}, scope: PerUser, version: 3.7.4150.0, language: 0 operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i103: Detected related package: {794D5EC8-A92F-4969-A318-449C2E71D8C4}, scope: PerUser, version: 3.7.4150.0, language: 0 operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i103: Detected related package: {794D5EC8-A92F-4969-A318-449C2E71D8C4}, scope: PerUser, version: 3.7.4150.0, language: 0 operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i103: Detected related package: {4BC82D3B-BBC7-4BAF-899D-10AF5745E4AB}, scope: PerUser, version: 3.7.4150.0, language: 0 operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i103: Detected related package: {4BC82D3B-BBC7-4BAF-899D-10AF5745E4AB}, scope: PerUser, version: 3.7.4150.0, language: 0 operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i103: Detected related package: {16F74529-EDE0-4BBD-B2AF-89AF9C696EA8}, scope: PerUser, version: 3.7.4150.0, language: 0 operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i103: Detected related package: {16F74529-EDE0-4BBD-B2AF-89AF9C696EA8}, scope: PerUser, version: 3.7.4150.0, language: 0 operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i103: Detected related package: {E5B772D5-8CCD-461B-BC60-B10DFB5704AB}, scope: PerUser, version: 3.7.4150.0, language: 0 operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i103: Detected related package: {E5B772D5-8CCD-461B-BC60-B10DFB5704AB}, scope: PerUser, version: 3.7.4150.0, language: 0 operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i103: Detected related package: {D722DA3A-92F5-454A-BD5D-A48C94D82300}, scope: PerMachine, version: 3.7.6762.0, language: 0 operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i000: Setting numeric variable 'InstallLauncherAllUsers' to value 1
[663C:4B0C][2019-07-09T16:40:35]i000: Setting numeric variable 'Include_launcher' to value 1
[663C:4B0C][2019-07-09T16:40:35]i000: Setting numeric variable 'DetectedLauncher' to value 1
[663C:4B0C][2019-07-09T16:40:35]i000: Setting string variable 'Include_launcherState' to value 'disable'
[663C:4B0C][2019-07-09T16:40:35]i000: Setting string variable 'InstallLauncherAllUsersState' to value 'disable'
[663C:4B0C][2019-07-09T16:40:35]i000: Setting numeric variable 'AssociateFiles' to value 1
[663C:4B0C][2019-07-09T16:40:35]i103: Detected related package: {D722DA3A-92F5-454A-BD5D-A48C94D82300}, scope: PerMachine, version: 3.7.6762.0, language: 0 operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i000: Setting numeric variable 'InstallLauncherAllUsers' to value 0
[663C:4B0C][2019-07-09T16:40:35]i000: Setting numeric variable 'Include_launcher' to value 1
[663C:4B0C][2019-07-09T16:40:35]i000: Setting numeric variable 'DetectedLauncher' to value 1
[663C:4B0C][2019-07-09T16:40:35]i000: Setting string variable 'Include_launcherState' to value 'disable'
[663C:4B0C][2019-07-09T16:40:35]i000: Setting string variable 'InstallLauncherAllUsersState' to value 'disable'
[663C:4B0C][2019-07-09T16:40:35]i000: Setting numeric variable 'AssociateFiles' to value 1
[663C:4B0C][2019-07-09T16:40:35]i103: Detected related package: {F92D31AF-F447-4A85-B0FD-CE6378F7625A}, scope: PerUser, version: 3.7.4150.0, language: 0 operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i103: Detected related package: {F92D31AF-F447-4A85-B0FD-CE6378F7625A}, scope: PerUser, version: 3.7.4150.0, language: 0 operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i103: Detected related package: {16AB56AD-A068-4407-B239-25D2A507743D}, scope: PerUser, version: 3.7.4150.0, language: 0 operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i103: Detected related package: {16AB56AD-A068-4407-B239-25D2A507743D}, scope: PerUser, version: 3.7.4150.0, language: 0 operation: Downgrade
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: ucrt_AllUsers, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: ucrt_JustForMe, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: core_AllUsers, state: Obsolete, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: core_AllUsers_pdb, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: core_AllUsers_d, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: core_JustForMe, state: Obsolete, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: core_JustForMe_pdb, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: core_JustForMe_d, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: dev_AllUsers, state: Obsolete, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: dev_AllUsers_d, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: dev_JustForMe, state: Obsolete, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: dev_JustForMe_d, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: exe_AllUsers, state: Obsolete, cached: None
[663C:4B0C][2019-07-09T16:40:35]i104: Detected package: exe_AllUsers, feature: DefaultFeature, state: Absent
[663C:4B0C][2019-07-09T16:40:35]i104: Detected package: exe_AllUsers, feature: Shortcuts, state: Absent
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: exe_AllUsers_pdb, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: exe_AllUsers_d, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: exe_JustForMe, state: Obsolete, cached: None
[663C:4B0C][2019-07-09T16:40:35]i104: Detected package: exe_JustForMe, feature: DefaultFeature, state: Absent
[663C:4B0C][2019-07-09T16:40:35]i104: Detected package: exe_JustForMe, feature: Shortcuts, state: Absent
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: exe_JustForMe_pdb, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: exe_JustForMe_d, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: lib_AllUsers, state: Obsolete, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: lib_AllUsers_pdb, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: lib_AllUsers_d, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: lib_JustForMe, state: Obsolete, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: lib_JustForMe_pdb, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: lib_JustForMe_d, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: test_AllUsers, state: Obsolete, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: test_AllUsers_pdb, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: test_AllUsers_d, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: test_JustForMe, state: Obsolete, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: test_JustForMe_pdb, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: test_JustForMe_d, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: doc_AllUsers, state: Obsolete, cached: None
[663C:4B0C][2019-07-09T16:40:35]i104: Detected package: doc_AllUsers, feature: DefaultFeature, state: Absent
[663C:4B0C][2019-07-09T16:40:35]i104: Detected package: doc_AllUsers, feature: Shortcuts, state: Absent
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: doc_JustForMe, state: Obsolete, cached: None
[663C:4B0C][2019-07-09T16:40:35]i104: Detected package: doc_JustForMe, feature: DefaultFeature, state: Absent
[663C:4B0C][2019-07-09T16:40:35]i104: Detected package: doc_JustForMe, feature: Shortcuts, state: Absent
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: tools_AllUsers, state: Obsolete, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: tools_JustForMe, state: Obsolete, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: tcltk_AllUsers, state: Obsolete, cached: None
[663C:4B0C][2019-07-09T16:40:35]i104: Detected package: tcltk_AllUsers, feature: DefaultFeature, state: Absent
[663C:4B0C][2019-07-09T16:40:35]i104: Detected package: tcltk_AllUsers, feature: AssociateFiles, state: Absent
[663C:4B0C][2019-07-09T16:40:35]i104: Detected package: tcltk_AllUsers, feature: Shortcuts, state: Absent
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: tcltk_AllUsers_pdb, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i104: Detected package: tcltk_AllUsers_pdb, feature: Symbols, state: Absent
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: tcltk_AllUsers_d, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i104: Detected package: tcltk_AllUsers_d, feature: DebugBinaries, state: Absent
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: tcltk_JustForMe, state: Obsolete, cached: None
[663C:4B0C][2019-07-09T16:40:35]i104: Detected package: tcltk_JustForMe, feature: DefaultFeature, state: Absent
[663C:4B0C][2019-07-09T16:40:35]i104: Detected package: tcltk_JustForMe, feature: AssociateFiles, state: Absent
[663C:4B0C][2019-07-09T16:40:35]i104: Detected package: tcltk_JustForMe, feature: Shortcuts, state: Absent
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: tcltk_JustForMe_pdb, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i104: Detected package: tcltk_JustForMe_pdb, feature: Symbols, state: Absent
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: tcltk_JustForMe_d, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i104: Detected package: tcltk_JustForMe_d, feature: DebugBinaries, state: Absent
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: launcher_AllUsers, state: Obsolete, cached: None
[663C:4B0C][2019-07-09T16:40:35]i104: Detected package: launcher_AllUsers, feature: DefaultFeature, state: Absent
[663C:4B0C][2019-07-09T16:40:35]i104: Detected package: launcher_AllUsers, feature: AssociateFiles, state: Absent
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: launcher_JustForMe, state: Obsolete, cached: None
[663C:4B0C][2019-07-09T16:40:35]i104: Detected package: launcher_JustForMe, feature: DefaultFeature, state: Absent
[663C:4B0C][2019-07-09T16:40:35]i104: Detected package: launcher_JustForMe, feature: AssociateFiles, state: Absent
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: pip_AllUsers, state: Obsolete, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: pip_JustForMe, state: Obsolete, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: path_AllUsers, state: Obsolete, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: path_JustForMe, state: Obsolete, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: compileall_AllUsers, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: compileallO_AllUsers, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: compileallOO_AllUsers, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: compileall_JustForMe, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: compileallO_JustForMe, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i101: Detected package: compileallOO_JustForMe, state: Absent, cached: None
[663C:4B0C][2019-07-09T16:40:35]i199: Detect complete, result: 0x0
[663C:67A8][2019-07-09T16:40:35]i052: Condition 'not WixBundleElevated and (InstallAllUsers or (Include_launcher and InstallLauncherAllUsers and not DetectedLauncher))' evaluates to false.
[663C:67A8][2019-07-09T16:40:38]i000: Setting numeric variable 'CompileAll' to value 0
[663C:67A8][2019-07-09T16:40:38]i000: Setting string variable 'ActionLikeInstalling' to value 'Installing'
[663C:67A8][2019-07-09T16:40:38]i000: Setting string variable 'ActionLikeInstallation' to value 'Setup'
[663C:67A8][2019-07-09T16:40:38]e000: Error 0x80070666: Cannot install a product when a newer version is installed.

feature: local-language-support

Describe the bug
I installed the latest package release using pip on my existing W7 python environment 3.7.2-amd 64.Installation was glitch free .
However when trying to install 3.6.0 amd64 (or any other version 3+) I have the following message :
C:\Windows\System32>pyenv --version
pyenv 1.2.2
C:\Windows\System32>pyenv install 3.6.0-amd64
:: [Downloading] :: 3.6.0-amd64 ...
Une erreur s'est produite lors de la connexion sécurisée (which means an error occurred during secure connection)

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'windows7 cmd prompt'
  2. Click on '....'
  3. Commands entered 'pyenv install 3.6.0-amd64'
  4. See error

Expected behavior
Expected the selected Python version to be installed

Screenshots
If applicable, add screenshots to help explain your problem.

pyenv-win error

Desktop (please complete the following information):

  • OS: Windows 7
  • Tools used command prompt
  • Version 1.2.2

Additional context
I am not using a proxy and I work from Home. So fancy setup.

bug: Installation fails when %USERPROFILE% contains a space.

I am running on Windows 10.
USERPROFILE was "C:\Users\Thad Consulting".
I attempted installing pyenv-win using the instructions for pip (2.7.15 was installed) within the Windows command box. After pip completed, I typed pyenv. I received an error indicating that the full full name was not used within the pyenv.bat script.

After adding quotes with the batch file, I attempted
pyenv install 2.7.15
The file downloaded, but failed to install.

I didn't find a pyenv-win version number to reference.

feature: local-language-support

Describe the bug
Installation of pyenv using pip works but when I try to check the version or install a version of python, I have the following error messages:


$ pyenv
pyenv 1.2.2
Usage: pyenv  []
...
$ pyenv --version
Le chemin d'acc▒s sp▒cifi▒ est introuvable.
$ pyenv install 3.7.2
Erreur en entr▒e: Impossible de trouver le fichier script "C:\Users\J▒r▒mie Tharaud\.pyenv\pyenv-win\libexec\pyenv-install.vbs".

To Reproduce
Steps to reproduce the behavior:

  1. Install pyenv-win using pip with a user profile containing a special character
  2. Update the PATH variable with pyenv and shims paths
  3. Run pyenv --version command

Expected behavior
The version of pyenv should be displayed and the installation of python should work.

Desktop (please complete the following information):

  • OS: Windows 8.1 (French Language)
  • Tools used: git bash
  • Version: 1.22

bug:Cannot install older version of python

Describe the bug
After installing 3.5.4 I tried to install 3.5.1 and it failed with

[090C:57D8][2019-09-20T22:47:23]e000: Error 0x80070666: Cannot install a product when a newer version is installed.

To Reproduce
Steps to reproduce the behavior:

  1. pyenv install 3.5.4
  2. pyenv install 3.5.1

Expected behavior
python 3.5.1 is installed alongside 3.5.4
Error:

[090C:57D8][2019-09-20T22:47:23]e000: Error 0x80070666: Cannot install a product when a newer version is installed.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows
  • Tools used command prompt
  • Version pyenv "1.2.2"

Additional context
Add any other context about the problem here.

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.