Home >Backend Development >Python Tutorial >How to Fix the \'Microsoft Visual C 14.0 is required\' Error When Installing lxml?
Installing lxml with Microsoft Visual C 14.0
Encountering the "Microsoft Visual C 14.0 is required" error while installing lxml using pip can be frustrating, especially if you already have a version of Visual Studio installed. This issue typically arises if the C compiler was not included during the Visual Studio installation.
To resolve this issue, follow these steps:
Once you have verified that the C compiler is installed, attempt to install lxml through pip again. The installation should now proceed successfully.
Note: If you have already installed visual studio c 2015 redistributables and encounter the "there's another version of the product already installed" error, it could be due to the installer not recognizing the pre-existing installation. Consider uninstalling all Visual Studio and Visual C redistributable packages and reinstalling them in the correct order.
The above is the detailed content of How to Fix the 'Microsoft Visual C 14.0 is required' Error When Installing lxml?. For more information, please follow other related articles on the PHP Chinese website!