No module name bson

How can I use 3rd party library like bson specifically in custom app?
I’m unable to add the library to my custom app.

I’ve tried :
I’ve added bson to the require.txt file
I ran the bench setup requirements and on my computer local had no problems, but when installing on other server it gave me the error “no module name bson”.
How do I fix it???

After you installed the app, did you migrate and build the site? If there’s a problem, it might be with the installed app or possibly with the file path.