1、下载chardet安装包
直接搜索“chardet 下载”

2、解压至C:\Python27下 即Python安装目录

3、打开cmd,输入 cd c:/python27/chardet-3.0.4,进入C:\python27\chardet-3.0.4

4、cmd中输入
python setup.py install
# 我已经安装好,不在演示。
5、测试,cmd中输入
python
import chardet
# 没有显示错误,说明安装好了。

时间:2026-02-15 09:25:46
1、下载chardet安装包
直接搜索“chardet 下载”

2、解压至C:\Python27下 即Python安装目录

3、打开cmd,输入 cd c:/python27/chardet-3.0.4,进入C:\python27\chardet-3.0.4

4、cmd中输入
python setup.py install
# 我已经安装好,不在演示。
5、测试,cmd中输入
python
import chardet
# 没有显示错误,说明安装好了。
