


Solution to Unable to find vcvarsall.bat error when installing PIL module in python
Many people may have encountered this error. When using setup.py to install the python2.7 image processing module PIL, python will by default look for vs2008 installed on the computer. If you do not install vs2008, Unable will appear to find vcvarsall.bat
Error.
So how to solve this error? Here's how to fix this error.
You can set the VS90COMNTOOLS environment variable to guide python to recognize a new vs. and then execute setup.py to continue the installation.
If you have installed vs2010, execute in cmd:
1 |
|
If you have installed vs2012, Execute in cmd:
1 |
|
If you installed vs2013, execute in cmd:
1 |
|
If you think VS is too big and don’t want to install it, you can also install MinGW to solve it.
1. Find the bin folder in the MinGW installation directory, find mingw32-make.exe, make a copy and rename it make.exe
2 . Add the path of MinGW to the environment variable path. For example, if I install MinGW in D:\MinGW\, then add D:\MinGW\bin to the path;
3.
1 2 |
|
and save the file.
Summary
The above is the solution to the Unable to find vcvarsall.bat error encountered when python installs the PIL module. I hope it can It will be helpful to everyone’s study or work. If you have any questions, you can leave a message to communicate.
For more related articles on the solution to the Unable to find vcvarsall.bat error when installing the PIL module in python, please pay attention to the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Solution to permission issues when viewing Python version in Linux terminal When you try to view Python version in Linux terminal, enter python...

How to avoid being detected when using FiddlerEverywhere for man-in-the-middle readings When you use FiddlerEverywhere...

When using Python's pandas library, how to copy whole columns between two DataFrames with different structures is a common problem. Suppose we have two Dats...

How does Uvicorn continuously listen for HTTP requests? Uvicorn is a lightweight web server based on ASGI. One of its core functions is to listen for HTTP requests and proceed...

Fastapi ...

Using python in Linux terminal...

How to teach computer novice programming basics within 10 hours? If you only have 10 hours to teach computer novice some programming knowledge, what would you choose to teach...

Understanding the anti-crawling strategy of Investing.com Many people often try to crawl news data from Investing.com (https://cn.investing.com/news/latest-news)...
