0

Why I can't use the PERIODIC module on sololearn?

I want to know why I cannot use the PERIODIC module on Sololearn and what should I do to use it?

23rd Jan 2021, 1:07 PM
K.S.S. Karunarathne
K.S.S. Karunarathne - avatar
3 Answers
0
It isn't built in, you need to install the module, for that use the following command : import subprocess subprocess.run(["pip","install","-q","periodictable"]) import periodictable print(dir(periodictable)) Note: you may get a warning about upgrading pip, so you can either run another command before the above one to upgrade pip or ignore it.
23rd Jan 2021, 1:13 PM
Abhay
Abhay - avatar
0
Or clearly from os import system system('pip install periodictable -q') **Note** '-q' means silently install a package
23rd Jan 2021, 3:06 PM
Stefan
Stefan - avatar