How to fix Module not found error in Python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to fix Module not found error in Python?

I tried to import some modules in my program but it's throwing error "Module Not Found". Meanwhile I tried to fix it by installing pip package but that didn't worked out.

10th Jun 2017, 8:00 PM
Murgu
Murgu - avatar
6 Answers
+ 2
@Murgu wrote: << I tried to fix it by installing pip package but that didn't worked out. >> Did you install only the pip package? Pip is a tool for installing modules: after installing it, you need to use it with command line kind of: pip install module_name Or are you meaning you "tried to install module package through pip"? In all cases, if this fail, you must have some error messages explaining where it's failed ^^ Another important information to get more chances to be helped are: - module name - operating system
11th Jun 2017, 6:33 AM
visph
visph - avatar
+ 4
If you're trying to install Python module in sololearn code playground, you cannot: Python interpreter here is on sololearn servers, so only module installed on them are importable... You'll have to install a local Python interpreter to be able to install modules on your local install, or use other virtualized Python interpreter systems wich provide such capacities (server sided Python installation customization, as pythonanywhere.com provide on his Python based hosting services). Anyway, you can have limitation at module installation, regarding module dependencies requirements and platform used (locally some module install can require full rights -- root -- access and/or compiling some C/C++ libraries, limiting modules instalable on android for example, or distant system -- hosts -- can limit available modules -- but may be asked to be added depending on host)
10th Jun 2017, 9:59 PM
visph
visph - avatar
0
Config
10th Jun 2017, 8:10 PM
Murgu
Murgu - avatar
0
It's in lower case still not working
10th Jun 2017, 8:18 PM
Murgu
Murgu - avatar
0
Yaaaaaaaa
10th Jun 2017, 8:23 PM
Murgu
Murgu - avatar
0
I tried installing in my pc
11th Jun 2017, 6:23 AM
Murgu
Murgu - avatar