Home >Backend Development >Python Tutorial >Why Can't I Find vcvarsall.bat When Installing Python Packages?
Unable to Find vcvarsall.bat: Resolving the Issue
When installing Python packages like dulwich, you may encounter the error message "error: Unable to find vcvarsall.bat." This cryptic error indicates that the required version of Visual C is not installed.
Solution:
For Windows Installations:
Python 2.7 searches for Visual Studio 2008 during package installation. If you have a newer version installed, you can trick Python by setting the correct path in the VS90COMNTOOLS environment variable before calling setup.py.
Execute the following command based on the installed Visual Studio version:
Note: This method may not work for compiling Python modules. Refer to "Building lxml for Python 2.7 on Windows" for more information.
The above is the detailed content of Why Can't I Find vcvarsall.bat When Installing Python Packages?. For more information, please follow other related articles on the PHP Chinese website!