"우분투16 python-lxml 설치"의 두 판 사이의 차이

(새 문서: ;우분투 python-lxml 설치 ==확인== <source lang='console'> root@zetawiki:~# pip list | grep lxml root@zetawiki:~# python -c 'import lxml' Traceback (most recent call last): F...)
 
잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
(다른 사용자 한 명의 중간 판 2개는 보이지 않습니다)
2번째 줄: 2번째 줄:


==확인==
==확인==
<source lang='console'>
<syntaxhighlight lang='console'>
root@zetawiki:~# pip list | grep lxml
root@zetawiki:~# pip list | grep lxml
root@zetawiki:~# python -c 'import lxml'
root@zetawiki:~# python -c 'import lxml'
8번째 줄: 8번째 줄:
   File "<string>", line 1, in <module>
   File "<string>", line 1, in <module>
ImportError: No module named lxml
ImportError: No module named lxml
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
root@zetawiki:~# apt list python-lxml
root@zetawiki:~# apt list python-lxml
Listing... Done
Listing... Done
python-lxml/xenial 3.5.0-1build1 amd64
python-lxml/xenial 3.5.0-1build1 amd64
</source>
</syntaxhighlight>


==설치==
==설치==
<source lang='console'>
<syntaxhighlight lang='console'>
root@zetawiki:~# apt install python-lxml
root@zetawiki:~# apt install python-lxml
Reading package lists... Done
Reading package lists... Done
31번째 줄: 31번째 줄:
After this operation, 4,007 kB of additional disk space will be used.
After this operation, 4,007 kB of additional disk space will be used.
Do you want to continue? [Y/n]  
Do you want to continue? [Y/n]  
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
Get:1 http://kr.archive.ubuntu.com/ubuntu xenial/main amd64 python-bs4 all 4.4.1-1 [64.2 kB]
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:2 http://kr.archive.ubuntu.com/ubuntu xenial/main amd64 python-html5lib all 0.999-4 [83.1 kB]
50번째 줄: 50번째 줄:
Setting up python-html5lib (0.999-4) ...###########################......................]  
Setting up python-html5lib (0.999-4) ...###########################......................]  
Setting up python-lxml (3.5.0-1build1) ...##################################.............]
Setting up python-lxml (3.5.0-1build1) ...##################################.............]
</source>
</syntaxhighlight>


==확인 2==
==확인 2==
<source lang='console'>
<syntaxhighlight lang='console'>
root@zetawiki:~# apt list python-lxml
root@zetawiki:~# apt list python-lxml
Listing... Done
Listing... Done
python-lxml/xenial,now 3.5.0-1build1 amd64 [installed]
python-lxml/xenial,now 3.5.0-1build1 amd64 [installed]
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
root@zetawiki:~# python -c 'import lxml'
root@zetawiki:~# python -c 'import lxml'
root@zetawiki:~# pip list | grep lxml
root@zetawiki:~# pip list | grep lxml
lxml (3.5.0)
lxml (3.5.0)
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2020년 11월 2일 (월) 02:31 기준 최신판

우분투 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 }}