I'm using PHP to run python scripts using the exec()
function.
After installing Anaconda and making it the default Python install by placing it first in myPATH
variable, I was able to import all the modules I needed like Scikit Learn, Numpy etc, and still run the script from PHP using exec()
.
Here's the problem: when I installed Tensorflow (with Anaconda), by following the instruction on this page, it needs you to activate the Anaconda environment after the install before you can actually use it. It works when I do it on the command line, but I how can I reproduce that activation process from a PHP script? I, understandably get the ModuleNotFoundError
. Or to rephrase, how can I make importing Tensorflow as effortless as the other modules that come with Anaconda? Am I missing something?