Python crawler--windows + python3.4.3 BeautifulSoup installation __python

Source: Internet
Author: User


python3.4.3 to BeautifulSoup support is not very good, most of the online is python2.7 installation tutorials, and press that is quite a bit of trouble.

Finally, a solution was found in https://www.crummy.com/software/BeautifulSoup/bs4/doc.zh/

1. Download

https://www.crummy.com/software/BeautifulSoup/bs4/download/

2. Extract to D:\python34 that is the Python installation directory

3. Open cmd, enter D:\python34\beautifulsoup4-4.4.1, this is my installation path, which has setup.py file

Input in 4.cmd

$ Python setup.py Install

If it doesn't work, beautiful soup's release agreement allows you to package BS4 code in your project so that you don't need to install it.

5. Test whether the installation is good

5.1 Enter Python, enter Python module

5.2 Enter the from BS4 import BeautifulSoup detect success.

Attached BeautifulSoup Chinese document links, then enjoy the reptile journey. Https://www.crummy.com/software/BeautifulSoup/bs3/documentation.zh.html#Quick%20Start

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.