0

my code is having an issue in which when i run the program it gives the error message :

ImportError: No module named 'mouse'

this happens even though the module is installed???

Code below:

import mouse
print(mouse.get_position())

2 Answers2

0

If you are using IDE like PyCharm make sure you download the package on the IDE.

In pycharm go to Setting->Python Interpretor->Click + ->search your package name (in this case mouse) -> install the package

idan noyshul
  • 151
  • 1
  • 9
0

If you can't use the module globally, please try to install it and use the module using a virtual environment as an example you can use anaconda.

Gimnath
  • 824
  • 9
  • 11