Python3 Win7 安裝 BeautifulSoup,python3win7

來源:互聯網
上載者:User

Python3 Win7 安裝 BeautifulSoup,python3win7

準備材料:

1,Win7,已安裝的 Python3.4.1

2,BeautifulSoup4.3.2


安裝辦法:

1,開啟cmd

2,進入BeautifulSoup的解壓目錄

3,運行 python setup.py install


>>> import bs4>>> 

至此安裝成功,程式會自動將bs4包複製到python安裝路徑中的Lib\site-packages\檔案夾中

見(圖中的 “2 to 3”是筆者自己加上的,你的肯定沒有這句,不用擔心)




python中的BeautifulSoup模組具體怎安裝並添加

簡答:
BeautifulSoup 3.0.6之前:改名為BeautifulSoup.py,放到和你Python檔案同目錄下即可;
BeautifulSoup 3.0.6之後:需要安裝BeautifulSoup後才可使用。

詳解:

我之前寫好教程了,自己看即可:
【教程】Python中第三方的用於解析HTML的庫:BeautifulSoup

(此處不能貼地址,可以通過google搜標題,即可找到文章地址)
 
python中BeautifulSoup安裝問題

你好:
代碼沒看清;
bs4引用格式:
from bs4 import BeautifulSoup
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.