How do you import a python module into a GTK4 python application

I can’t seem to be able to find any information on importing python modules into a gtk application.
If I add import requests to my main.py I get the error

ModuleNotFoundError: No module named 'requests'

However there doesn’t seem to be any file with python imports/requirements in the application directory.

Could someone either point me to some relevant documentation that I missed or provide any example.
Thanks

GTK doesn’t interfere with imports. You should be able to import as in any other python application, the problem is likely not GTK

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.