PyAudio Installation Error: "Microsoft Visual C 14.0 is required"
You are facing an installation error while attempting to install PyAudio on Windows 10, specifically: "error: Microsoft Visual C 14.0 is required." This error indicates a missing dependency that is essential for the installation process.
Solution:
The error message clearly states that Microsoft Visual C 14.0 is required. Follow these steps to resolve the issue:
-
Download Microsoft Visual C Build Tools: Navigate to the Microsoft Visual Studio website (http://landinghub.visualstudio.com/visual-cpp-build-tools) and download the latest version of the Visual C Build Tools.
-
Install Build Tools: Run the downloaded installer and follow the on-screen instructions to install the Build Tools.
-
Reinstall PyAudio: Once the Build Tools are installed, return to your command prompt and attempt to reinstall PyAudio using the following command:
pip install pyaudio
Copy after login
-
Verify Installation: If the installation proceeds without the error, you have successfully installed PyAudio.
Additional Notes:
- If you receive the same error again, ensure that you installed the latest version of the Build Tools.
- If you have a 64-bit version of Python, make sure to download the 64-bit version of the Build Tools.
- If you have a 32-bit version of Python, download the 32-bit version of the Build Tools.
- Restart your computer after installing the Build Tools to ensure all changes take effect.
The above is the detailed content of Why am I getting the 'Microsoft Visual C 14.0 is required' error when installing PyAudio on Windows 10?. For more information, please follow other related articles on the PHP Chinese website!