1. 程式人生 > >MAC 為python3安裝 beautifulsoup4

MAC 為python3安裝 beautifulsoup4

ng- trac sudo mark button error: post popu pip

先裝pip (終端)輸入命令:sudo easy_install pip

安bs4 輸入命令:pip install beautifulsoup4

出現錯誤
OSError: [Errno 13] Permission denied:

輸入命令:sudo easy_install beautifulsoup4

這時把bs裝到了Mac系統自帶了Python2.7

把beautifulsoup4裝到Python3

輸入命令:pip3 install beautifulsoup4

MAC 為python3安裝 beautifulsoup4