Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1943699
  • 博文数量: 424
  • 博客积分: 1291
  • 博客等级: 中尉
  • 技术积分: 2682
  • 用 户 组: 普通用户
  • 注册时间: 2012-08-13 01:34
个人简介

linux oracle 网络安全 编程

文章分类

全部博文(424)

文章存档

2016年(22)

2015年(53)

2014年(57)

2013年(242)

2012年(50)

分类: Python/Ruby

2016-05-05 14:14:45

I just installed html5lib for Python with Windows Command Prompt. The package was installed here:

File "C:\Python27\lib\site-packages\html5lib
However, if I try to import html5lib:

#! /usr/bin/python
import html5lib
I get the following error:

Traceback (most recent call last):
File "C:\Users\workspace\testhtml5\src\test.py", line 2, in
import html5lib
File "C:\Python27\lib\site-packages\html5lib\__init__.py", line 16, in
from .html5parser import HTMLParser, parse, parseFragment
File "C:\Python27\lib\site-packages\html5lib\html5parser.py", line 2, in
from six import with_metaclass
ImportError: No module named six

虽然安装html5lib库但是import一样有以上告警,查了一下stackflow说是缺了six库!安装完之后正常了。
阅读(1259) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~