Visual studio code not finding Python modules

I have activated my venv in the terminal, I have insured that Pillow is installed and checked that I have the right Python interpreter selected in VSCode I am still getting these errors.

(env) PS C:\Users\Pixel\Projects\Python\DiceDistributionV2> python -u "c:\Users\Pixel\Projects\Python\DiceDistributionV2\main.py"
Traceback (most recent call last):
  File "c:\Users\Pixel\Projects\Python\DiceDistributionV2\main.py", line 2, in <module>
    from PIL import Image, ImageTk
ModuleNotFoundError: No module named 'PIL'
(env) PS C:\Users\Pixel\Projects\Python\DiceDistributionV2> pip list
Package       Version
------------- -------
customtkinter 5.0.2
darkdetect    0.7.1
Pillow        9.4.0
pip           22.0.4
setuptools    58.1.0

Any idea what I can try next?

Read more here: Source link