Remember what Python has to install the PIL library

Source: Internet
Author: User

Self-taught Python, to use the PiL this very famous library, then install Bai

Everyone knows Python, with the Easy_install command to install the special simple, the command is as follows:

Okay, so we're done, let's go to the%python_home%\lib\site-packages folder and see if there's a library file already in use.

OK, as shown, also already have, to, the above PIL package is I installed separately, if you just install with easy_install command, Site-packages folder below is not PIL this folder,

And the PiL folder is the installer that I downloaded from the net, the address is http://www.pythonware.com/products/pil/

Why do I install an extra download installer?

Because I started with easy_install command installed, in the program import not PIL library, do not know is my machine problem or what, anyway I have encountered this problem

Can not be introduced, only uninstall this PiL, and then loaded ROM (programmer two big strokes: Restart and reload, (*^__^*) hehe ...)

To uninstall the third-party library, use the EASY_INSTALL-M command, as follows:

See the above a large list of things, do not know what meaning ... (In fact, I probably can understand that it seems to say that many versions of the problem, but I found on the Internet, there is no specific answer), but there is no prompt to uninstall success

Sure enough, go back to the Site-packages folder to see if there is Pil-1.1.7-py2.7-win32.egg this folder

Dizzy, can't unload, how to do?

All right, try another order, please.

Pip Uninstall command, as follows:

It looks like you can, Site-packages folder, look, Pil-1.1.7-py2.7-win32.egg's folder is gone.

Then, I went to carry on the test mentality, to download the official website, manual installation

After the installation is successful, you will have a PiL folder under the Site-packages folder, and in the program, you can import pil.

Estimated someone will ask, you unexpectedly use pip Uninstall uninstall PiL, why do not use Pip install PiL?

Well, I've tried this method, as follows:

There seems to be a problem.

So finally, we recommend that if you use the PIL library, please download the corresponding installation file to install the website!

This Bo finish ~~~~~~~~~~

Remember what Python has to install the PIL library

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.