We have installed Centos 6.x in one or our VM and it has come with default Python 2.6 installed. On top of it we have installed Python 2.7 and configured Python 2.7 as default in /usr/bin/. When I type python in my command line it gives version Python 2.7. But when I execute my python script file test.py it is using Python 2.6 instead of Python 2.7. Did I miss any configurations to tell my scripts to use Python 2.7 instead of Python 2.6 on my machine?
sys.executable
your script reports, and the results ofldd
on that executable run via command prompt and also viasubprocess.check_call
(in case it differs). – ShadowRanger