ubuntu12.04 安装BeautifulSoup遇到的问题

root @ubuntu :/home/chris# apt-get install python-setuptools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libdrm-intel1 libdrm2 libdrm-radeon1 libgl1-mesa-dri libxkbfile1
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  python-setuptools
0 upgraded, 1 newly installed, 0 to remove and 53 not upgraded.
Need to get 195kB of archives.
After this operation, 909kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com karmic/main python-setuptools 0.6c9-0ubuntu5 [195kB]
Fetched 195kB in 2s (92.5kB/s)
Selecting previously deselected package python-setuptools.
(Reading database ... 72637 files and directories currently installed.)
Unpacking python-setuptools (from .../python-setuptools_0.6c9-0ubuntu5_all.deb) ...
Setting up python-setuptools (0.6c9-0ubuntu5) ...
 
root @ubuntu :/home/chris# easy_install BeatifulSoup
Searching for BeatifulSoup
Reading http://pypi.python.org/simple/BeatifulSoup/
Couldn't find index page for 'BeatifulSoup' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for BeatifulSoup
error: Could not find suitable distribution for Requirement.parse('BeatifulSoup')
root @ubuntu :/home/chris# easy_install BeautifulSoup
Searching for BeautifulSoup
Best match: BeautifulSoup 3.1.0.1
Processing BeautifulSoup-3.1.0.1-py2.6.egg
BeautifulSoup 3.1.0.1 is already the active version in easy-install.pth
 
Using /usr/local/lib/python2.6/dist-packages/BeautifulSoup-3.1.0.1-py2.6.egg
Processing dependencies for BeautifulSoup
Finished processing dependencies for BeautifulSoup
root @ubuntu :/home/chris# python
Python 2.6.4 (r264:75706, Dec  7 2009, 18:45:15)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import BeautifulSoup
>>>

转载于:https://my.oschina.net/zhangdapeng89/blog/57872

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值