- 帖子
- 2
- 精华
- 0
- 积分
- 23
- 阅读权限
- 10
- 注册时间
- 2013-11-19
- 最后登录
- 2013-12-2
|
回帖奖励 +5
请问crossin先生,我用的是python3.3,我下载了chardet2.1.1,解压后把chardet目录拷贝到python系统路径Python33\Lib\site-packages下。然后import chardet没有问题,但是尝试chardet.detect('a')时却报错:
Traceback (most recent call last):
File "<pyshell#12>", line 1, in <module>
chardet.detect('a')
File "C:\Python33\lib\site-packages\chardet\__init__.py", line 21, in detect
import universaldetector
ImportError: No module named 'universaldetector'
可是在chardet目录中的的确确是有universaldetector.py文件的啊,我不知道为什么会这样,还望先生指点。 |
|