Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python3.8 Pip Distutils.cmd Not Found

I was trying to have a virtualenv set up where it is at python 3.8 while my system is at a more recent version.

I have figured out how to create the venv but now when I try to install packages like mediapipe and opencv-python and everything else I get an error saying: ModuleNotFoundError: No module named 'distutils.cmd'. I have tried sudo apt-get install python-distutils and sudo apt-get install python-apt but they are all up to date and do nothing.

I am on Debian Bullseye (the raspberry pi one though)

Thanks

(P.S Sorry if this is a duplicate but nothing else worked)

like image 478
kineticcat_ Avatar asked Jun 08 '26 23:06

kineticcat_


1 Answers

I got the same issue, what resolved it was to install distutils for pythonV.v specfically with

sudo apt install pythonV.v-distutils

In mycase V.v == 3.8