close

寫python時遇到以下錯誤

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\Programs\Python\Python35-32\lib\site-packages\bs4\__init__.py", line 165, in __init__
    % ",".join(features))
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?
 

網路上寫說降版本到3.7.3就可以 但我仍然有這個錯誤 後來我關掉編譯器再打開就沒事了!

不小心就花了2小時一直在糾結....

另一種測試有沒有安裝的方法就是在cmd 輸入 pyhton後  ,再輸入import lxml 沒錯誤就是其實有安裝好

arrow
arrow
    全站熱搜

    程式小試身手 發表在 痞客邦 留言(0) 人氣()