第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

符號(hào)有問(wèn)題

>>> from bs4 import beautifulsoup

Traceback (most recent call last):

? File "<pyshell#0>", line 1, in <module>

? ? from bs4 import beautifulsoup

? File "C:\Users\ONEPIECE\AppData\Local\Programs\Python\Python35-32\beautifulsoup4-4.5.1.tar\beautifulsoup4-4.5.1\bs4\__init__.py", line 53

? ? '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

安裝beautifulsoup中出現(xiàn)這個(gè),醉了

正在回答

3 回答

You?are?trying?to?run?the?Python?2?version?of?Beautiful?Soup?under?Python?3

你在嘗試用版本2運(yùn)行版本3下的Beautiful Soup。

試試 python3+回車鍵進(jìn)入python的編輯環(huán)境。直接用python+回車,會(huì)搜索path變量最先找到的可執(zhí)行文件,如果你python2的環(huán)境變量在3前面,python+回車進(jìn)入的是2的環(huán)境。

0 回復(fù) 有任何疑惑可以回復(fù)我~

好吧 有人知道python3.5該用哪個(gè)版本的bs

0 回復(fù) 有任何疑惑可以回復(fù)我~

好吧 我是想說(shuō)install有問(wèn)題,結(jié)果貼上來(lái)的代嗎沒啥關(guān)系

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

符號(hào)有問(wèn)題

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)