No module named 'splashkit' in Python error
Solution(s)
Section titled “Solution(s)”1. Install python using homebrew
Section titled “1. Install python using homebrew”If you haven’t installed homebrew, or homebrew’s python package, follow the steps below:
-
Install Homebrew.
-
Install python, using homebrew with the following command:
Terminal window brew install python@3.13 -
Add homebrew to your path using the following command:
Terminal window echo "eval \"\$(/opt/homebrew/bin/brew shellenv)\"" >> ~/.zshrcsource ~/.zshrc -
Verify that the terminal is using the Homebrew-installed Python version:
Terminal window which python3The output should be something like:
/opt/homebrew/bin/python3 -
Run your Python code again. It should now successfully locate the SplashKit module.
After completing these steps, your terminal will use the Homebrew-installed version of Python, and your Python script should now successfully find and run the SplashKit module without encountering the ModuleNotFoundError
.