우분투16 python-lxml 설치

우분투 python-lxml 설치

1 확인[ | ]

root@zetawiki:~# pip list | grep lxml
root@zetawiki:~# python -c 'import lxml'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named lxml
root@zetawiki:~# apt list python-lxml
Listing... Done
python-lxml/xenial 3.5.0-1build1 amd64

2 설치[ | ]

root@zetawiki:~# apt install python-lxml
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  python-bs4 python-html5lib
Suggested packages:
  python-genshi python-lxml-dbg python-lxml-doc
The following NEW packages will be installed:
  python-bs4 python-html5lib python-lxml
0 upgraded, 3 newly installed, 0 to remove and 42 not upgraded.
Need to get 967 kB of archives.
After this operation, 4,007 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://kr.archive.ubuntu.com/ubuntu xenial/main amd64 python-bs4 all 4.4.1-1 [64.2 kB]
Get:2 http://kr.archive.ubuntu.com/ubuntu xenial/main amd64 python-html5lib all 0.999-4 [83.1 kB]
Get:3 http://kr.archive.ubuntu.com/ubuntu xenial/main amd64 python-lxml amd64 3.5.0-1build1 [819 kB]
Fetched 967 kB in 1min 37s (9,963 B/s)                                                      
Selecting previously unselected package python-bs4.
(Reading database ... 147253 files and directories currently installed.)
Preparing to unpack .../python-bs4_4.4.1-1_all.deb ...
Unpacking python-bs4 (4.4.1-1) ..........................................................] 
Selecting previously unselected package python-html5lib..................................] 
Preparing to unpack .../python-html5lib_0.999-4_all.deb ...
Unpacking python-html5lib (0.999-4) .....................................................] 
Selecting previously unselected package python-lxml......................................] 
Preparing to unpack .../python-lxml_3.5.0-1build1_amd64.deb ...
Unpacking python-lxml (3.5.0-1build1) ...#########.......................................] 
Setting up python-bs4 (4.4.1-1) ...#######################...............................] 
Setting up python-html5lib (0.999-4) ...###########################......................] 
Setting up python-lxml (3.5.0-1build1) ...##################################.............]

3 확인 2[ | ]

root@zetawiki:~# apt list python-lxml
Listing... Done
python-lxml/xenial,now 3.5.0-1build1 amd64 [installed]
root@zetawiki:~# python -c 'import lxml'
root@zetawiki:~# pip list | grep lxml
lxml (3.5.0)

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}