我安装了所有包:
现在我有一个测试:
Type "help", "copyright", "credits" or "license" for more information.
import scrapy
from scrapy.selector import HtmlXPathSelector
exit()
[root@dev site-packages]# scrapy
bash: scrapy: command not found
怎么办?谢谢。
答案 0 :(得分:1)
你如何安装scrapy? easy_install的?还是pip安装?或者python install setup.py?应该是路径问题。您需要将bin / scrapy脚本安装到PATH中的目录,例如/ usr / local / bin。
以下是一个类似的问题:Scrapy installation on OSX Lion