Install the python plug-in that depends on lxml in Win7, win7lxml

Source: Internet
Author: User

Install the python plug-in that depends on lxml in Win7, win7lxml

I wanted to install a pyquery crawler in win7 for several days. I found that python is not very deep.

Some of them do not exist. Please forgive me

Python 3.4

 

 

 

 

1. Download easy_install and pip. skip this step. python 3.x comes with it by default.

 

 

 

2. Try pip pyquery install, and the disconnection error occurs: This pip is generally used for online download on a foreign website and has been tested by the wall.

 

 

 

3. Well, since there is a wall that usually has images, you can check the website.

 

Http://topmanopensource.iteye.com/blog/2004853

 

 

 

4. I will use pip install pyquery-I http://pypi.douban.com/simple, and tmdstill reports Microsoft Visual C ++ runtime 10.0 conflict is already required Get it started with windows sdk7.1 ..... (Note: vc ++ 2010x64 Redistributable in the computer is far from enough. It was initially hacked.) As a java party, the computer is really reluctant to install vc, so look at the solution post https://www.douban.com/note/507206321/

 

I have tried these methods:

 

A: Download the source code package and execute the setup. py file (1. cmd to the setup. py folder. 2. python setup. py install)

 

Error: lxml is not found. pip is automatically downloaded. pip goes to the default website and is blocked.

 

B. Can I download lxml directly:

 

Cmd ---> pip install lxml-I http://pypi.douban.com/simple. the Microsoft Visual C ++ program 10.0 forbidden is invalid required Get it failed with windows sdk7.1 .....

 

C: Install the Micorsoft Visual C ++ Compiler for Python package. However, only 2.7 is supported, and 3.4 is not supported.

 

 

 

5. At last, I installed vc ++ 2010. The installation package was downloaded online and on the Microsoft official website, which was very slow! No way, finally found this http://download.csdn.net/detail/aasmfox/8738673#comment

 

 

 

6. Installed vc ++ 2010, try again cmd ---> pip install lxml-I http://pypi.douban.com/simple/(ㄒ o plugin )/~~ The following error is reported: ValueError: ['path', 'lib', 'include ']. All right, I will download and install the. whl file.

 

 

 

7. install the. whl file. Run the command: cmd --> pip install the command.

 

 

 

8. install the. whl file method: cmd --> cd to the. whl file path --> pip install lxml-3.6.4-cp34-cp34m-win_amd64.whl/(export o done )/~~ Error: lxml-3.6.4-cp34-cp34m-win_amd64.whl is not a supported wheel on this platform.

 

 

 

9. Solution: http://www.cnblogs.com/nice-forever/p/5371906.html finally change the lxml-3.6.4-cp34-cp34m-win_amd64.whl file name to: lxml-3.6.4-cp34-none-win_amd64.whl

 

 

 

10. final success. It is estimated that python3.4 is the most painful python in history.

 

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.