python3 - No module named 'html5lib'

Sergio Spina sergio.am.spina at gmail.com
Fri Apr 15 13:56:44 EDT 2016


Il giorno giovedì 14 aprile 2016 17:54:00 UTC+2, Wildman ha scritto:
> On 2016年4月14日 02:31:59 -0700, Sergio Spina wrote:
>> > I'm running a python3 program that requires html5lib but I receive the error No module named 'html5lib'.
> > 
> > Here are two session of terminal:
> > 
> > sam at pc ~ $ python
> > Python 2.7.9 (default, Mar 1 2015, 12:57:24) 
> > [GCC 4.9.2] on linux2
> > >>> import html5lib
> > >>> html5lib.__file__
> > '/usr/local/lib/python2.7/dist-packages/html5lib/__init__.pyc'
> > >>> quit()
> > 
> > sam at pc ~ $ python3
> > Python 3.4.2 (default, Oct 8 2014, 10:45:20) 
> > [GCC 4.9.1] on linux
> > >>> import html5lib
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in <module>
> > ImportError: No module named 'html5lib'
> > 
> > Where can be the problem?
>> apt-get install python3-html5lib
>> -- 
> <Wildman> GNU/Linux user #557453
> The cow died so I don't need your bull!

It works, many thanks.


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /