0%

爬虫 scrapy 安装使用问题

报目录用户权限问题

使用 sudo -H 来解决。

ImportError: No module named PIL

这个就用下面的第二步就 ok 了。

  • First, remove both PIL and Pillow.
  • Then install Pillow with pip install pillow (although, depending on platform, you may need some prerequisites).
  • Then make sure code is using from PIL import Image rather than import Image