How to import in python? it gives me error in python 2.7 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to import in python? it gives me error in python 2.7

12th Jan 2018, 9:14 AM
Manivannan
Manivannan - avatar
3 Answers
+ 3
Maybe the module is not installed or module name is wrong
12th Jan 2018, 12:13 PM
Amine Trabelsi
Amine Trabelsi - avatar
+ 1
ya crct.how to install module
12th Jan 2018, 12:19 PM
Manivannan
Manivannan - avatar
+ 1
I'm using python3 so I don't know if this work. You can open cmd then write : python pip install module_name or python -m pip install module_name
12th Jan 2018, 12:22 PM
Amine Trabelsi
Amine Trabelsi - avatar