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,奶奶的(我以为是某个著名安全套牌子,😀)
好吧,只好忽视这个six(套子)
sudo pip install ipython --ignore-installed six
结果又报错,wtf
本人系统是
行,算你狠
sudo -H pip install beautifulsoup4
最后,PyCharm居然可以直接安装bs4插件
点击File -> Default settings ->Project Interpreter
点击➕,选择beautiful soup,添加插件即可,我擦,原来这么简单