0%

parsel 的安装

本节我们了解下 parsel 的安装方式。

相关链接

  • GitHub:https://github.com/scrapy/parsel
  • PyPi:https://pypi.org/project/parsel/
  • 官方文档:https://parsel.readthedocs.io/

安装方法

pip 安装

推荐使用 pip3 安装,命令如下:

1
pip3 install parsel

命令执行完毕之后即可完成安装。

验证安装

安装完成之后,可以在 Python 命令行下测试。

1
2
$ python3
>>> import parsel

如果没有错误报出,则证明库已经安装好了。