Skip to content

Conversation

lujin3
Copy link

@lujin3 lujin3 commented Dec 26, 2024

fix: ModuleNotFoundError: No module named 'distutils'

  • remove deprecated distutils.spawn import
  • add shutil import
  • implement find_executable using shutil.which for better compatibility

- remove deprecated distutils.spawn import
- add shutil import
- implement find_executable using shutil.which for better compatibility
@JamesConlan96
Copy link

Bump

@swirle13
Copy link

@lujin3 Is this an improvement over #1404?

What versions of python does this work for? Does it do more than #1475 which fixes this for python > 3.10 and prevents import errors for old python versions as old as 3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants