import pycurl 出現問題要怎麼解決?
我在執行下面這段程式碼的時候 ```python from grab import Grab from pyquery import PyQuery as pq g = Grab() res = g.go(url) doc = pq(res.body) title = doc('title') print(type((title)),title.text()) ``` 出現 ImportError: pycurl: libcurl link-time ssl backend (openssl) is different from compile-time ssl backend (none/other) 然後我按照這篇去做 [link](https://github.com/transloadit/python-sdk/issues/4) 在 uninstall pycurl 的時候出現下面的訊息 ERROR: Cannot uninstall 'pycurl'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. 想請問該怎麼解決?謝謝!
回答列表
-
2021/02/18 下午 04:52張維元 (WeiYuan)贊同數:0不贊同數:0留言數:1
嗨,你好
這邊建議你先把 pycurl 跟 open-ssl 刪掉,重新安裝一次試試看。
嗨,你好,我是維元,持續在不同的平台發表對 #資料科學、 #網頁開發 或 #軟體職涯 相關的文章。如果對於內文有疑問都歡迎與我們進一步的交流,都可以追蹤我的 Facebook 或 技術部落格 ,也會不定時的舉辦分享活動,一起來玩玩吧 ヽ(●´∀`●)ノ 以下分享一些我近期發表跟資料科學有關的文章,歡迎大家持續追蹤: ■ 資料分析工具那麼多,該怎麼選? 🛠️
■ 真.資料團隊與分工
■ 觀察資料的 N 件事 🔖
■ 資料前處理必須要做的事 - 資料清理與型態調整