How to solve ModuleNotFoundError: No module named ‘setuptools’ with p4a and buildozer

As you are dealing with Python packages, some times you may need to use the setup.py script to build certain packages. But some time, you will face the following error

STDOUT:
Traceback (most recent call last):
File “/home/gk/.local/share/python-for-android/build/other_builds/kivymd/armeabi-v7a__ndk_target_24/kivymd/setup.py”, line 8, in <module>
from setuptools import find_packages, setup
ModuleNotFoundError: No module named ‘setuptools’

For this example, KivyMD is used. You may use something else. But the output remain same.

Use the following command to install the setuptools

pip install setuptools

This will solve the problem

Do you need help in python app development
Do you need help in python app development
Scroll to Top