How To Solve Modulenotfound Error In Idle?
I am using ubuntu 18.04. I first installed Python along with anacondafrom terminal whose version is 3.7.0 and I have launched Jupyter notebook and Spyder as well. Then I installed
Solution 1:
Your problem is due to the different interpreters installing modules in different paths, and because the default interpreter at the command prompt is likely 3.7, while the installed Idle uses 3.6
The answer to your problem is to use pip
to install new modules and invoke pip
as follows
$ python3.x -m pip install ...
This way you know which interpreter is called, and each times the correct version of pip
is invoked and, each time, the module is installed in the correct path for a given interpreter.
I have to add that, as far as I can tell, the Anaconda distribution does not support Idle.
Post a Comment for "How To Solve Modulenotfound Error In Idle?"