您的位置:首页 > 其它

ubuntu安装beatifulsoup,pip,creepy

2014-05-13 21:03 295 查看
首先我们安装pip,这样可以很简单的安装剩下的库

sudo apt-get install python-pip


接下来,用pip安装其他库,很简单

sudo pip install BeautifulSoup


记得,要用sudo,否则会报下面的错误

error: could not create '/usr/local/lib/python2.7/dist-packages/bs4': Permission denied


Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_chen/BeautifulSoup4/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-YJ3v4j-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_chen/BeautifulSoup4
Storing debug log for failure in /home/chen/.pip/pip.log


同理

sudo pip install creepy
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: