Skip to content

No module named 'distutils' on Python 3.12 #732

@SyberiaK

Description

@SyberiaK

Steps to reproduce

  1. Install Python 3.12
  2. Install speech_recognition and pyaudio with pip (pip install SpeechRecognition and pip install pyaudio)
  3. Create a Python script with this code:
import speech_recognition as sr

mic = sr.Microphone()
print('hello')
  1. 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions