Install chardet under windows

1. After downloading chardet, decompress chardet
2. Then copy chardet to D:\anzhuang\Python27
3. Enter cmd command prompt
4. Enter cd: D:\anzhuang\Python27\chardet-2.3.0
5. Enter d :
6. It is displayed as D:\anzhuang\Python27\chardet-2.3.0> python setup.py install
7. Enter python
import chardet If no error is reported, the installation is successful



Note: If a friend writes python code in eclipse, import may appear The chardet library failed, you
need to reconfigure python, click windows, click preferences to enter pydev, click interpreter - python; click remove on the right side, then click auto config, click ok, and finally click apply to apply, this time you can import the chardet library

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326700339&siteId=291194637