简体   繁体   中英

Python - PyAudio installation error “failed with exit status 2”

I was trying to install PyAudio on Python 3.7.

First of all i got an error message "Microsoft Visual C++ 14.0 is required" which was resolved by installing Visual Studio 2017.

But now I'm getting a new error :

c1: fatal error C1048: unknown option 'L' in '-ZILP448' error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

I am running Windows 10 64bit.

Also, I followed this post to find the first solution :

Maybe the configuration is available for only x86 compilers. Try to turn off this option in the:

Project Property Pages | Common Properties | C/C++ | Advanced | Enable Code Analysis for C/C++ entry

Reference

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