pyspider安装报错解决

narcissuskid
发布于 2023-09-14 / 111 阅读 / 0 评论 / 0 点赞

pyspider安装报错解决

1. python setup.py egg_info Check the logs for full command output

解决方案:

pip3 install --upgrade setuptools

2. Cannot import name ‘soft_unicode’ from ‘markupsafe’

解决方案:

pip3 install markupsafe==2.0.1

2. Phantomjs has crashed

解决方案:修改环境变量

export QT_QPA_PLATFORM=offscreen
export QT_QPA_FONTDIR=/usr/share/fonts

参考

  1. https://bobbyhadz.com/blog/python-importerror-cannot-import-name-soft-unicode-from-markupsafe
  2. https://blog.csdn.net/cs_mengxi/article/details/124159431
  3. https://blog.csdn.net/BJ1599449/article/details/120997015

评论