Home > Mobile >  How to solve problem "ModuleNotFoundError: No module named 'mac"
How to solve problem "ModuleNotFoundError: No module named 'mac"

Time:10-09

First I did pip3 install pymouse, then in the file (let's call it file1): import pymouse

running the code (Python 3 file1.py), and the error "Module Not Found Error: No module named 'mac'" crashes

At the same time, everything was fine earlier, but after I installed homeBrew, such errors began

CodePudding user response:

Solution - "brew install python"

CodePudding user response:

You can install Python3 with pyenv:

  1. brew install pyenv

  2. pyenv install <python_version>
    For example:
    ** pyenv install 3.10.7

To set the newly installed version as the default
3) pyenv global <python_version>

CodePudding user response:

Try pip install mac

Not much is given via google search, but according to an anonymous person on https://www.roseindia.net/answers/viewqa/pythonquestions/139027-ModuleNotFoundError-No-module-named-mac.html

After the installation of mac python library, ModuleNotFoundError: No module named 'mac' error will be solved.

Hopefully this helps!

  • Related