安装python爬虫相关第三方库报错

安装python爬虫相关的第三方库,命令如下:

#安装python第三方库
pip3 install requests selenium beautifulsoup4 pyquery pymysql pymongo redis flask django jupyter

发现如下报错:

Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?

安装python爬虫相关第三方库报错

查找相应的解决方法如下:

1. 安装wheel,命令行运行:
pip3 install wheel
2.在这里下载对应的.whl文件,注意别改文件名! http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml
3. 进入.whl所在的文件夹,执行命令即可完成安装
pip3 install 带后缀的完整文件名
Vultr 新用户注册就送100$
shunzi
  • 本文由 发表于 2018-02-0814:09:50
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
deepin linux 15.11系统安装 BLOG

deepin linux 15.11系统安装

Deepin 15.11系统安装 window系统实在是太难用了,用了那么多linux系统,发现deepin系统真的是太好用了!特别推荐一下!!! 首先下载deepin系统ISO镜像,https://...
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: