Install BeautifulSoup under Windows python3.3

Source: Internet
Author: User

First downloaded on the official website: http://www.crummy.com/software/BeautifulSoup/#Download

BeautifulSoup in version 4 and above have started to support Python3, so just the latest bar.

Before installing, however, the first thing to do is to convert all the code here from Python2 to Python3 format.

This work can be done using the 2to3.py that comes with Python.

This tool is used in python\tools\scripts in the following format:

2to3.py-w C:\Python33\beautifulsoup4-4.3.2

This way, you can start the installation. Place the downloaded folder in the Python root directory and execute it on this path:

1 python setup.py build 2 python setup.py install

When installed, enter:

Import BS4

See if there is an error is OK ~

Install BeautifulSoup under Windows python3.3

Related Article

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.