No module named "bs4"解決方法

Beautiful Soup下載鏈接:http://www.crummy.com/software/BeautifulSoup/download/4.x/

有多個版本可供選擇

解壓後通過 setup.py 來安裝

打開 cmd, 輸入: cd + setup.py 文件路徑

我的文件路徑是:

C:\Users\27511\Desktop\beautifulsoup4-4.1.0\beautifulsoup4-4.1.0
>>> 所以我輸入
cd C:\Users\27511\Desktop\beautifulsoup4-4.1.0\beautifulsoup4-4.1.0

在這裏插入圖片描述
再輸入 Python setup.py install , 命令行即可

Python setup.py install

大概 5s 左右就安裝成功
在這裏插入圖片描述

Beautiful Soup使用文檔: https://beautifulsoup.readthedocs.io/zh_CN/v4.4.0/#id8

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章