Running python script in android terminal emulator

I installed python 2.7 on my Android device and I tried to execute a python script by typing a command in a terminal emulator. The problem is that although I am using the full path for python, the following error appears:

link_image[1997]: failed to link ./python CANNOT LINK EXECUTABLE.

I tried adding environment variables to. / ~ bashrc, but I didn’t. Any idea?

+6
source share
1 answer

OK, it's resolved. I followed the following steps ( http://code.google.com/p/python-for-android/wiki/RunPythonFromShell ), but first I had to put the standalone_python.sh file in / data /, because I didn’t have sdcard permissions to execute. And finally, using 'su', I made it run the script as root.

+4
source

Source: https://habr.com/ru/post/954193/


All Articles