Open weiweihuanghuang opened 6 years ago
i.e. if I which python
I get:
/Users/weihuang/.pyenv/shims/python
Try to run pyenv rehash
pt., 27 lip 2018 o 15:56 Wei H notifications@github.com napisał(a):
i.e. if I which python I get:
/Users/weihuang/.pyenv/shims/python
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mitsuhiko/pipsi/issues/165#issuecomment-408426134, or mute the thread https://github.com/notifications/unsubscribe-auth/ADmT2VfogoiamhbYFz6w_f-ZpMwMYGjNks5uKxwCgaJpZM4VjiWX .
Thank you, but I still can't find it..
im entirely unfamiliar with the interactions between pyenv and the local env on osx
but it may be relevant to know your PATH and where python thingks your user site binary folder is
From terminal
$ echo $PATH
/Users/weihuang/.pyenv/shims:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/texbin:/opt/X11/bin:/usr/local/git/bin:/Users/weihuang/bin/FDK/Tools/osx
Python
>>> print os.environ["PATH"]
/usr/local/bin:/usr/local/Cellar/pyenv/1.2.4/libexec:/Users/weihuang/.pyenv/shims:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/texbin:/opt/X11/bin:/usr/local/git/bin:/Users/weihuang/bin/FDK/Tools/osx
I'm not sure how to check where python thinks my user site binary folder is though? Is this correct?
>>> print sys.executable
/usr/local/opt/python@2/bin/python2.7
the command is python -c 'import site;print(site.USER_BASE)'
$USER_BASE/bin
is required to be in $PATH
I see, my $USER_BASE is simply /Users/weihuang/Library/Python/2.7
, is it a matter of just adding that to my $PATH...?
@weiweihuanghuang the related bin
folder has to be
Thanks for following up and your patience. I don't understand what's wrong because the location is /Users/weihuang/Library/Python/2.7
which doesn't actually exist? I wonder if this issue is related https://github.com/pyenv/pyenv/issues/535
unfortunately i dont have the time and resources to look into pyenv on osx, im completely unfamiliar with pyenv and have never owned an apple machine
I'm on OS X, installation was fine with no errors. If it matters, I have pyenv for different versions of python, currently it's set to system.