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 command not found when installing on Windows. #597

Closed
jschwarzwalder opened this issue Aug 3, 2018 · 1 comment
Closed

pyenv command not found when installing on Windows. #597

jschwarzwalder opened this issue Aug 3, 2018 · 1 comment

Comments

@jschwarzwalder
Copy link
Contributor

jschwarzwalder commented Aug 3, 2018

Description:

Having difficulties installing onto Windows.
Using Windows 10 and Git Bash with python 3.6.4 installed.

Steps to reproduce the issue:

PATH!
 curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   148  100   148    0     0    148      0  0:00:01 --:--:--  0:00:01   394
100  2194  100  2194    0     0   2194      0  0:00:01 --:--:--  0:00:01  2194
Cloning into 'C:/Users/jamisch/.pyenv'...
remote: Counting objects: 609, done.
remote: Compressing objects: 100% (422/422), done.
remote: Total 609 (delta 292), reused 276 (delta 97), pack-reused 0
Receiving objects: 100% (609/609), 356.17 KiB | 7.42 MiB/s, done.
Resolving deltas: 100% (292/292), done.
Cloning into 'C:/Users/jamisch/.pyenv/plugins/pyenv-doctor'...
remote: Counting objects: 11, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 11 (delta 1), reused 6 (delta 1), pack-reused 0
Unpacking objects: 100% (11/11), done.
Cloning into 'C:/Users/jamisch/.pyenv/plugins/pyenv-installer'...
remote: Counting objects: 17, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 17 (delta 2), reused 9 (delta 0), pack-reused 0
Unpacking objects: 100% (17/17), done.
Cloning into 'C:/Users/jamisch/.pyenv/plugins/pyenv-update'...
remote: Counting objects: 10, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 10 (delta 1), reused 6 (delta 0), pack-reused 0
Unpacking objects: 100% (10/10), done.
Cloning into 'C:/Users/jamisch/.pyenv/plugins/pyenv-virtualenv'...
remote: Counting objects: 54, done.
remote: Compressing objects: 100% (48/48), done.
remote: Total 54 (delta 10), reused 19 (delta 0), pack-reused 0
Unpacking objects: 100% (54/54), done.
Cloning into 'C:/Users/jamisch/.pyenv/plugins/pyenv-which-ext'...
remote: Counting objects: 10, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 10 (delta 1), reused 5 (delta 0), pack-reused 0
Unpacking objects: 100% (10/10), done.

WARNING: seems you still have not added 'pyenv' to the load path.

# Load pyenv automatically by adding
# the following to ~/.bash_profile:

export PATH="/c/Users/jamisch/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

PATH~
$ pyenv -h
bash: pyenv: command not found

PATH~
$ export PATH="/c/Users/jamisch/.pyenv/bin:$PATH"

PATH~
$ pyenv
/c/Users/jamisch/.pyenv/bin/pyenv: line 1: ../libexec/pyenv: No such file or directory

Close window and reopened

PATH~
$ curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   148  100   148    0     0    148      0  0:00:01 --:--:--  0:00:01   451
100  2194  100  2194    0     0   2194      0  0:00:01 --:--:--  0:00:01  2194

PATH ~
$ pyenv
/c/Users/jamisch/.pyenv/bin/pyenv: line 1: ../libexec/pyenv: No such file or directory

PATH ~
$ pyenv -h
bash: pyenv: command not found

PATH~
$ export PATH="/c/Users/jamisch/.pyenv/bin:$PATH"

PATH ~
$ pyenv
/c/Users/jamisch/.pyenv/bin/pyenv: line 1: ../libexec/pyenv: No such file or directory

PATH~
$ python --version
Python 3.6.4

Observed result:
pyenv: command not found

Expected result:

pyenv 1.2.6
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
   which       Display the full path to an executable
   whence      List all Python versions that contain the given executable

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

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
Windows 10
Using Git Bash

Output of sam --version:

Optional Debug logs:

Add --debug flag to command you are running

found that command export PATH="/c/Users/jamisch/.pyenv/libexec:$PATH" will work

@jfuss
Copy link
Contributor

jfuss commented Aug 10, 2018

Closing as the PR addressing this was merged.

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

No branches or pull requests

2 participants