2015-06-11 29 views
1

我正在嘗試創建一個Web刮板項目,並從教程中看到我需要BeautifulSoup。我無法弄清楚如何下載它。如何在Windows 7上正確安裝BeautifulSoup

我使用的是Windows 7,安裝了Python 2.7.9,並已通過Pypi的exe文件成功下載了lxml。我看到帖子:(How to install beautiful soup 4 with python 2.7 on windows)並嘗試遵循這些步驟,但即使我已經提取了BS4的.tar文件,也無法下載它。

有人可以給如何安裝BS4指南嗎?

回答

1

您是否已安裝pip

pip install beautifulsoup4可能是安裝美麗的湯最簡單的方法。如果您有easy_install,則easy_install beautifulsoup4也將正確安裝。

+0

我有我的腳本文件夾下的Python27,我運行easy_intstall-2.7.exe文件。然後我進入powershell並運行easy_install beautifulsoup4? – TimTom

+0

只要運行easy_install-2.7.exe將不會執行任何操作。它的意思是從命令行運行,參數傳遞給它。打開命令提示符/ powershell並運行'easy_install beautifulsoup4' –