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