overdev / raylib-py

A Python binding for the great C library raylib.
Other
206 stars 18 forks source link

ModuleNotFoundError: No module named 'raylibpy' #48

Open Kaftorone opened 2 weeks ago

Kaftorone commented 2 weeks ago
ModuleNotFoundError: No module named 'raylibpy'

any help

overdev commented 1 week ago

Do you have more than one Python version installed? It seems you've installed for one version and tryed to run your script on another. If raylib-py is not found, probably the bug is not on raylib-py.

on your terminal/command prompt, do the following: ˋˋˋ pip list ˋˋˋ and check if raylib-py is the list. If positive, make sure the python interpreter running you script is the same. On windows, you can type

py --version

On mac or linux, it probably is

python3 --version

Then, in your script, one line above where you import raylib, add:

import sys
print(sys.version)

If the versions are the same, you must provide more context. Otherwise, you must run the script with the correct python version/interpreter where raylib-py is installed.