Page 1 of 1

Running a Python Script: Mobile & PC

Posted: Wed Jan 26, 2022 11:28 am
by Harchie Hirondo
MOBILE:

Steps to install Python on mobile (text by Harchie):

I somehow found a way to run a Python script on mobile and also edit them within that app. The app is called Pydroid 3, which is available on Google Playstore.
https://media.discordapp.net/attachment ... 185733.png

Once installed, you might be tasked to answer some questions, but in the end, it's up to you if you'd like to purchase the Python lessons or not.

You'll then see the interface, and located in the upper portion of the screen is a folder icon, click on it and you shall see this.
https://media.discordapp.net/attachment ... 185619.png

Tap "Open" and select the file that you'd like to run.
In my instance, this is what it looks like...
https://media.discordapp.net/attachment ... 185644.png

Afterwards, select the yellow "play" button that is located in the bottom right portion of the screen and you shall see something like this :)
(Results vary depending on the script written)
https://media.discordapp.net/attachment ... 185706.png

Note: Images attached here are only as links since they're too large :(


Pillow
New thing from 2023.08.25 that thy python looks into images too (for pixel sizes) that needed this library PILLOW)

Android Emulator:
for Android emulators read here how to install: https://github.com/python-pillow/Pillow/issues/1957



Steps to install Pillow (by Midonik):
1. Install Pydroid 3 from Google Play
2. Top left has a button with 3 horizontal lines, click that
3. Next click a button that says Pip
4. Should take you to a screen with a dialog window saying Library name and a button saying Install next to it. Type pillow in the dialog window and click install.
5. The app will ask you to download a plugin from Google Play if you dont have it already, do that. You can unistall it after you step 6.
6. Redo step 4


PC:

On pc Install pyhon (https://www.python.org/)

Pillow
New thing from 2023.08.25 that the python looks into images too (for pixel sizes) that needed this library PILLOW)

on PC latest python requires this library as it has image pixel size checking from now:
and after execute in command line ("cmd"):

Code: Select all

pip install Pillow

if you dont have pip than:
https://pip.pypa.io/en/stable/installation/

Re: Running a Python Script: Mobile

Posted: Wed Jan 26, 2022 3:50 pm
by b2198
You can also use Termux and install python from its terminal, then use it with command line.

Re: Running a Python Script: Mobile

Posted: Wed Aug 30, 2023 9:29 pm
by Stratego (dev)
update about PILLOW library

Re: Running a Python Script: Mobile & PC

Posted: Tue Sep 05, 2023 2:27 pm
by Stratego (dev)
easier way updated in first post.

Re: Running a Python Script: Mobile & PC

Posted: Thu Sep 07, 2023 12:48 pm
by Midonik
I think what Harche describded is about running python scripts on Android in general, while I talk about how to install Pillow on Android.

Re: Running a Python Script: Mobile & PC

Posted: Thu Sep 07, 2023 11:06 pm
by Stratego (dev)
Midonik wrote: Thu Sep 07, 2023 12:48 pm I think what Harche describded is about running python scripts on Android in general, while I talk about how to install Pillow on Android.
ok! i changed it!