How to tell distutils to use gcc? March 20, 2023 by Tarik Try setting the “CC” environment variable from inside the setup.py with os.environ.