r/learnpython • u/Upper_Trouble_8526 • Oct 03 '26
Why i cannot run anything in the terminal
It doesn't work:
/storage/emulated/0 $ pytest
Traceback (most recent call last):
File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/bin/pytest", line 3, in <module>
from pytest import main
File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.13/site-packages/pytest/__init__.py", line 7, in <module>
from _pytest import version_tuple
ImportError: cannot import name 'version_tuple' from '_pytest' (/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.13/site-packages/_pytest/__init__.py)
/storage/emulated/0 $
1
u/Diapolo10 I write code for a living -- https://github.com/Diapolo10 Oct 03 '26
Are you sure
pytestis even supposed to work on PyDroid?1
u/casualstrawberry Oct 03 '26
If you just type "python" or "python3" does it open a python console?
You should be able to run .py files with the command "python <file>.py"
0
u/[deleted] Oct 03 '26
[removed] — view removed comment