ModuleNotFoundError - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: ModuleNotFoundError (/thread-38771.html) |
ModuleNotFoundError - mawarir - Nov-22-2022 I am trying to run a code that works in another laptop but not sure why i am getting the following error message: ModuleNotFoundError: No module named 'bresenham' i googled this error and found that i needed to install: pip install bresenham but i am still getting the same error message. RE: ModuleNotFoundError - Larz60+ - Nov-22-2022 Some tedious but necessary questions: Do you have more than one version of python installed? A separate version of pip comes with each version. Are you running in a virtual environment? And, if so has it been activated. If all of the above is OK, from command line check python version: python -V and then pip pip -V do the versions match? next make sure package shows in pip pip list If you get this far, try running your script from the command line with python myscript.py , replacing myscript with your script name.Do you get the same error? last, did you use this command to install bresenham python -m pip install bresenham ?see GitHub page here: https://github.com/encukou/bresenham |