伟哥带你安装beautiful soup(mac)

1.安装pip

sudo easy_install pip 
… … 
…此处省略N行… 
… … 
Installed /Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg 
Processing dependencies for pip Finished processing dependencies for 
pip

2.使用pip安装python

sudo pip install ipython 

结果报错要卸载six,奶奶的(我以为是某个著名安全套牌子,)

伟哥带你安装beautiful soup(mac)_第1张图片
Paste_Image.png

好吧,只好忽视这个six(套子)

sudo pip install ipython --ignore-installed six

结果又报错,wtf

Paste_Image.png

本人系统是

伟哥带你安装beautiful soup(mac)_第2张图片
Paste_Image.png

行,算你狠

sudo -H pip install beautifulsoup4

最后,PyCharm居然可以直接安装bs4插件

点击File -> Default settings ->Project Interpreter

伟哥带你安装beautiful soup(mac)_第3张图片
Paste_Image.png

点击➕,选择beautiful soup,添加插件即可,我擦,原来这么简单

伟哥带你安装beautiful soup(mac)_第4张图片
Paste_Image.png

你可能感兴趣的:(伟哥带你安装beautiful soup(mac))