No module named 'distutils' on Python 3.12
SyberiaK opened this issue · comments
Steps to reproduce
- Install Python 3.12
- Install
speech_recognition
andpyaudio
with pip (pip install SpeechRecognition
andpip install pyaudio
) - Create a Python script with this code:
import speech_recognition as sr
mic = sr.Microphone()
print('hello')
- Launch the script.
Expected behaviour
hello
printed in the console
Actual behaviour
Because distutils
was removed in Python 3.12, we get ModuleNotFoundError: module named 'distutils'
System information
My Python version is 3.12.