Write it in front.
Recently looking at "computer Vision with Python" need to install PIL library, usually always under Windows development, go to "Python Extensions for Windows" Look under the results of the next file extension is. WHL. Google did not know to install this extension of the package needs PIP. Usually used with the. exe installation package, Easy_install, Pip are not installed. BA la point data, finishing the installation method of Easy_install. There is a button to install the script!
Installing Easy_install
Download ez_setup.py
from urllib import urlopendata = urlopen(‘http://peak.telecommunity.com/dist/ez_setup.py‘)with open(‘ez_setup.py‘, ‘wb‘) as f: f.write(data.read())
Run ez.setup.py on the command line
One-click Scripting
import osfile_name = ‘ez_setup.py‘from urllib import urlopendata = urlopen(‘http://peak.telecommunity.com/dist/ez_setup.py‘)with open(file_name, ‘wb‘) as f: f.write(data.read())os.system(‘python %s‘ % (os.path.join(os.getcwd(),file_name)))
Install PIP
easy_install pip
Installing the WHL file
install whatever.whl
Original link: http://www.cnblogs.com/wu-wenmin/p/4250330.html
Installation methods for Easy_install, Pip and WHL files under Windows