I am using venv within wsl in vscode for windows machine. Despite installing requirements.txt everytime I run python -m main.py
I get this error :
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'.
When I run which python
it points to the directory within the venv. I have also tried running sudo apt-get install libffi-dev
I get this response:
libffi-dev is already the newest version (3.4.2-4).
0 upgraded, 0 newly installed, 0 to remove and 33 not upgraded
I’m not sure how to resolve this now.
New contributor
Nishaal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.