How would I install modules in this app while coding | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How would I install modules in this app while coding

I want to install playsound module for a python program . But don't know how to import this module

11th May 2023, 2:02 AM
Naman Sen
Naman Sen - avatar
3 Answers
11th May 2023, 2:33 AM
Hasnain [ACTIVE CHALLENGER]
Hasnain [ACTIVE CHALLENGER] - avatar
+ 2
You can install any package but be careful the sololearn compiler don't import lengthy package https://code.sololearn.com/ct11TWwj9uAj/?ref=app hope it's helpful to you
11th May 2023, 2:44 AM
Sakshi
Sakshi - avatar
0
#try this code: import os module_name = input() os.system(f"pip install {module_name}")
11th May 2023, 5:43 AM
Fꫀⲅძ᥆͟ᥙ᥉᯽
Fꫀⲅძ᥆͟ᥙ᥉᯽ - avatar