Ho eseguito:
sudo pip install beautifulsoup4
E ottenuto:
The directory '/Users//Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users//Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: beautifulsoup4 in /Library/Python/2.7/site-packages/beautifulsoup4-4.5.3-py2.7.egg
Quindi ho usato il flag -H e ho eseguito:
sudo -H pip install beautifulsoup4
Requirement already satisfied: beautifulsoup4 in /Library/Python/2.7/site-packages/beautifulsoup4-4.5.3-py2.7.egg
Quindi a questo punto non sono sicuro di essere o meno bravo.