亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

BeautifulSoup 報錯,怎么解決

系統環境:win7,32位,python3.5.1,BeautifulSoup4.4.1

D:\python351\python.exe D:/Python/module/baike_spider351/html_parser.py

Traceback (most recent call last):

? File "D:/Python/module/baike_spider351/html_parser.py", line 2, in <module>

? ? from bs4 import BeautifulSoup

? File "D:\python351\lib\bs4\__init__.py", line 48

? ? 'You are trying to run the Python 2 version of Beautiful Soup under Python 3. This will not work.'<>'You need to convert the code, either by installing it (`python setup.py install`) or by running 2to3 (`2to3 -w bs4`).'

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?^

SyntaxError: invalid syntax


正在回答

4 回答

什么東西?


0 回復 有任何疑惑可以回復我~

重新安裝哪個?

0 回復 有任何疑惑可以回復我~

重新安裝就可以了!

0 回復 有任何疑惑可以回復我~

這個問題你解決了嗎??我也遇到了

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
Python開發簡單爬蟲
  • 參與學習       227596    人
  • 解答問題       1288    個

本教程帶您解開python爬蟲這門神奇技術的面紗

進入課程

BeautifulSoup 報錯,怎么解決

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號