win10下 python安裝feedparser
- 方法1
使用
pip install feedparser
但我總是失敗,連接超時。
- 方法2
在官網中
https://pypi.org/project/feedparser/#files.
下載feedparser的zip壓縮包。
解壓到電腦中任何一個文件夾,再用cmd進入到該目錄下,使用
python setup.up install
安裝。但我一直報 raise KeyError, "object doesn’t have key ‘category’"的錯誤。並沒有解決。
- 方法3
試了上述兩個方法都不行,我在
https://www.cnblogs.com/fengzifengfeng/p/10744706.html這篇文章中找到了可以的方法。
使用
pip install feedparser -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com --trusted-host pypi.douban.com
安裝成功。