你可以使用相应的python为特定的python版本执行 pip模块:
Python 2.6:
python2.6 -m pip install beautifulsoup4
Python 2.7
python2.7 -m pip install beautifulsoup4

你可以使用相应的python为特定的python版本执行 pip模块:
Python 2.6:
python2.6 -m pip install beautifulsoup4
Python 2.7
python2.7 -m pip install beautifulsoup4