I currently have python 2.7 installed as part of OSX, and recently installed 3.5.2.
I'm running a local webserver on my mac using XAMPP, and when I execute the python script from within apache, it loads fine:
$executePython = "python " . __DIR__ . "/cycle/cutoff.py $device_id $processPreviousMinutes";
exec("$executePython");
However, when I replace python
with python3
my script refuses to run. I can invoke it manually from the command line using both versions, however it seems like the apache account/daemon doesn't have access to python3. Would this be something to do with a configuration file that I've overlooked?