mitsuhiko / pipsi

pip script installer
Other
2k stars 133 forks source link

Pipsi installed but still `command not found` in terminal #165

Open weiweihuanghuang opened 6 years ago

weiweihuanghuang commented 6 years ago

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.

weiweihuanghuang commented 6 years ago

i.e. if I which python I get:

/Users/weihuang/.pyenv/shims/python
halicki commented 6 years ago

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 .

weiweihuanghuang commented 6 years ago

Thank you, but I still can't find it..

RonnyPfannschmidt commented 6 years ago

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

weiweihuanghuang commented 6 years ago

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

RonnyPfannschmidt commented 6 years ago

the command is python -c 'import site;print(site.USER_BASE)' $USER_BASE/bin is required to be in $PATH

weiweihuanghuang commented 6 years ago

I see, my $USER_BASE is simply /Users/weihuang/Library/Python/2.7, is it a matter of just adding that to my $PATH...?

RonnyPfannschmidt commented 6 years ago

@weiweihuanghuang the related bin folder has to be

weiweihuanghuang commented 6 years ago

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

RonnyPfannschmidt commented 6 years ago

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