Install Tidylib under Windows

Source: Internet
Author: User

Go to Https://pypi.python.org/pypi/pytidylib first.

Download Pytidylib


Run an official test case error

Ition 0:unexpected End of Datatraceback (most recent call last): File "_CTYPES/CALLBACKS.C", line 314, in ' calling CALLB Ack function ' File ' D:\Python27\lib\site-packages\tidylib\sink.py, line Put_byte write_func (Byte.decode (' Utf-8 ') File "D:\Python27\lib\encodings\utf_8.py", line +, in Decode return Codecs.utf_8_decode (input, errors, True) Unico Dedecodeerror: ' UTF8 ' codec can ' t decode byte 0xb7 in position 0:invalid start byte


Workaround:

Go to http://www.paehl.com/open_source/?HTML_Tidy_for_Windows download Libtidy DLL


Unzip the DLL into the scripts folder in the Python installation directory




Install Tidylib under Windows

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.