简体   繁体   中英

'Could not configure a C compliler' error while running the command 'python ./waf distclean all' in command prompt

I have a python script which I need to bundle it into a single exe file using pyinstaller. While running the command 'pyinstaller –-onefile –-windowed myscript.py' through command prompt. I got the error 'Fatal error: PyInstaller does not include a pre-compiled bootloader for your platform' after the line 30389: INFO: Building EXE from EXE-00.toc.

And on googling I found that we need perform certain steps as a pre-requisite to build bootloader as follows,

Step 1: git clone https://github.com/pyinstaller/pyinstaller

Step 2: cd pyinstaller/bootloader

Step 3: python./waf distclean all

On performing step 3, I got the error like 'Could not configure a C compiler'

Could anyone help me to resolve the same.

you have to install c compiler here is the link https://visualstudio.microsoft.com/vs/features/cplusplus/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM