bo Master Python Rookie, this would like to Install a pyquery under the Win7 play crawler, toss a few days finally well, found Python This hole is not general deep ah.
A part of it is not, please understand
Python version 3.4
1. Download easy_install and pip, this step skipped,python 3.X default comes with
2. try to use pip pyquery Install, there is a disconnect error: this pip online Download general use of foreign sites, visual inspection by the wall
3. Well, since there is usually a wall of the mirror, sure enough to see the site
http://topmanopensource.iteye.com/blog/2004853
4. I use the watercress pip install pyquery-i http://pypi.douban.com/simple,TMD or error Microsoft Visual C + + 10.0 is required Get it With Windows sdk7.1 ..... (Note: The computer has vc++2010 x64 Redistributable is not enough, a start was mixed) as a Java Party, the computer is really not willing to install VC , so look at the settlement https://www.douban.com/note/507206321/
I have tried these methods:
A: Download the source package, execute the inside setup.py file (1.cmd to setup.py folder. 2.python setup.py install)
error:lxml did not find,pip automatically download,pip to go to the default site, was the wall.
B. then I can download lxml directly :
CMD--->pip install lxml-i http://pypi.douban.com/simple, or error Microsoft Visual C + + 10.0 is required Get it with window S sdk7.1 .....
C: Install Micorsoft Visual C + + Compiler for Python package, helpless only support 2.7,3.4 no
5. Finally, I still honestly installed the vc++2010 Bar, the installation package online download, and is Microsoft Official website, the speed is huge slow! There's no way, I finally found this http://download.csdn.net/detail/aasmfox/8738673#comment .
6. Install vc++2010, then try cmd--->pip install lxml-i http://pypi.douban.com/simple /(ㄒoㄒ)/~~ Another error: valueerror: [' path ', ' Lib ', ' include '], OK, I downloaded the installation . WHL file
7. Install the. WHL file before installing the WHEEL:CMD-->PIP installation wheel
8. Install the. Whl file method: Cmd-->cd to the. WHL file path-->pip install LXML-3.6.4-CP34-CP34M-WIN_AMD64.WHL/(ㄒoㄒ)/~~ Error: LXML-3.6.4-CP34-CP34M-WIN_AMD64.WHL is not a supported wheel on this platform.
9. Solution paste:http://www.cnblogs.com/nice-forever/p/5371906.html finally put Lxml-3.6.4-cp34-cp34m-win_ AMD64.WHL file name to: LXML-3.6.4-CP34-NONE-WIN_AMD64.WHL
10. Finally succeeded, estimated that python3.4 was the most painful python in history.
Installing a Python plugin that relies on lxml under Win7