2

I have a Python3 script that I would like to call from my webpage. My webhost says they will not add Python3 to their site (their version of python is 2.6.6).

Is there anyway I can run a Python3 script from my webpage if I do not have Python3 installed? I can use Perl to run Python if it would be possible.

1

1 Answer 1

1

You cannot run it as it is, obviously, without the python3 interpreter.

You can compile it though (http://www.pyinstaller.org/) and run that from php.

Sign up to request clarification or add additional context in comments.

2 Comments

Will this be able to compile and be ran from php?
Yes, you compile it (see pyinstaller.org) and use it with shell_exec from php (php.net/manual/en/function.shell-exec.php).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.