[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyenv-win version checking error after installation #156

Open
yjw224 opened this issue Sep 15, 2020 · 0 comments
Open

pyenv-win version checking error after installation #156

yjw224 opened this issue Sep 15, 2020 · 0 comments

Comments

@yjw224
Copy link
yjw224 commented Sep 15, 2020

Describe the bug
I installed pyenv-win in my command prompt and was able to successfully set environment variables. However, when I go to check version of pyenv, it errors out.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Command Prompt / Anaconda Prompt
  2. Run pip install pyenv-win --target %USERPROFILE%.pyenv
  3. Go to PowerShell
  4. Run [System.Environment]::SetEnvironmentVariable('PYENV',$env:USERPROFILE + ".pyenv\pyenv-win","User")
  5. Run [System.Environment]::SetEnvironmentVariable('path', $HOME + ".pyenv\pyenv-win\bin;" + $HOME + ".pyenv\pyenv-win\shims;" + $env:Path,"User")
  6. Close PowerShell, Close Command Prompt / Anaconda Prompt
  7. Open Command Prompt / Anaconda Prompt
  8. pyenv --version
    'chcp' is not recognized as an internal or external command,
    operable program or batch file.
    'cscript' is not recognized as an internal or external command,
    operable program or batch file.

When I check version of python, it works:
(base) C:\Users\Natalie>python --version
Python 3.7.0

Expected behavior
Running pyenv --version should return the current version of pyenv like what it shows for python.

Desktop (please complete the following information):

  • OS: Windows 10
  • Tools used: command prompt, PowerShell, Anaconda Prompt

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant