Home >Backend Development >Python Tutorial >Why Do I Get the 'Microsoft Visual C 14.0 is required (Unable to find vcvarsall.bat)' Error When Installing Python Modules?
The installation of Python 3.5 often involves the use of pip to install additional modules. However, some users may encounter the perplexing error message "error: Microsoft Visual C 14.0 is required (Unable to find vcvarsall.bat)" when attempting to install the mysql-python module.
Upon further analysis, it becomes evident that the issue stems from the absence of Microsoft Visual Studio 2015, denoted as version 14.0. Despite adding Visual Studio 11 and 12 to the path variable, the system requires version 14.0 to resolve the error.
The solution lies in installing Microsoft Visual Studio 2015, ensuring that the "Languages" → "C " checkbox is selected during the installation process. This should effectively rectify the issue, enabling the successful installation of the mysql-python module via pip.
An alternative approach is to upgrade the setuptools package using the following command:
pip install --upgrade setuptools
By addressing the absence of Microsoft Visual C 14.0 and, if necessary, upgrading setuptools, it is possible to resolve the "error: Microsoft Visual C 14.0 is required (Unable to find vcvarsall.bat)" error and proceed with the installation of modules via pip without further hindrance.
The above is the detailed content of Why Do I Get the 'Microsoft Visual C 14.0 is required (Unable to find vcvarsall.bat)' Error When Installing Python Modules?. For more information, please follow other related articles on the PHP Chinese website!