Running Python scripts inside Android Studio

I am running Android Studio 2.2.3

I need to run Python scripts during my development in order to process some data files. The final thing is apknot to run Python on the device.

I am currently running scripts from a terminal or from PyDev for Eclipse, but I was looking for a way to do this from Android Studio.

There seems to be a way to do this, because when I right-click on a file .pyand select the Run option, the Edit Configuration dialog box opens, where I can configure several options. The problem is that I cannot specify a Python interpreter, having to select it from a combo box of already configured Python SDKs. While there is no interpreter selected, the error message "Error: select a module with a valid Python SDK" appears .

I managed to create Java modules for my project, but not Python (I have the Python Community Edition plugin installed). Does anyone know how to achieve this?

TIA.

+4
source share
1 answer

, , - | | . Python , Python; . "", , "" | .

+3

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


All Articles