osx - How to make kivy use specific version of python on OS X? -
i have multiple versions of python installed on osx yosemite. these work want them (i.e. can use 2.7.10 instead of 3.4.x or system 2.5.x).
noticed when use kivy run .py file, don't warnings this:
[info ] [python ] v2.7.6 (default, sep 9 2014, 15:04:36)
but when start idle commands: python
or kivy
both of these commands start idle prompt using 2.7.10
should kivy using current python version?
echo $path
/library/frameworks/python.framework/versions/2.7/bin:/library/frameworks/python.framework/versions/2.7/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/library/frameworks/python.framework/versions/2.7/bin:/library/frameworks/python.framework/versions/2.7/bin:/library/frameworks/python.framework/versions/current/bin:/library/frameworks/python.framework/versions/2.7/bin:/library/frameworks/python.framework/versions/2.7/bin:/library/frameworks/python.framework/versions/2.7/bin:/users/subnetfile/android-sdk_r16-macosx/android-sdk-macosx/platform-tools/:/users/subnetfile/android-sdk-macosx/android-sdk-macosx/platform-tools/:/library/frameworks/python.framework/versions/2.7/bin:/library/frameworks/python.framework/versions/2.7/bin:/opt/local/bin:/opt/local/sbin:/library/frameworks/python.framework/versions/2.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/x11/bin
i wondering why have of duplicate path entries...?
can call python of following:
python python2-32 python2.6 python2.7-config pythonw2-32 pythonw2.7-32 python-32 python2-config python2.6-config pythonw pythonw2.5 python-config python2.5 python2.7 pythonw-32 pythonw2.6 python2 python2.5-config python2.7-32 pythonw2 pythonw2.7
but, said, when call "python" brings 2.7.10 want.
kivy using older version of python?
the .kv files associated .app bundle through finder. in case kivy.app
running gui app has not idea of path have set in bash startup scripts finds python on paths apple set in os. in case think app finds /usr/bin/python system supplied python 2.7.6
the command line use path (which needs sorting out) , first python finds 1 in /library 2.7 python.org, latest 2.7.10 (i assume ivy script finds don't know details)
your path set in shell startup files see answer more details
Comments
Post a Comment