I used Python 2.7 (pre-installed with my MacOs version) with a LC stack and I was able to check if Python is intalled with something like:
Code: Select all
function isPythonInstalled
get shell("python --version")
return (char 1 to 13 of it <> "/bin/sh: line")
end isPythonInstalled
When I type "python3 --version" in the Mac Console, it returns "Python 3.7.8rc1". But it doesn't work when I use in my stack:
Code: Select all
get shell("python3 --version")
For informations: "which -a python python2 python2.7 python3 python3.6" typed in the Mac Console returns:
So, I know where Python 3 was installed on my machine, but how could I check from my LC stack if Python 3 is installed on other computers?/usr/bin/python
/usr/bin/python2.7
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3
/usr/local/bin/python3
Thank you.