centos6.3安装scrapy失败,bash:scrapy:命令未找到

时间:2013-03-08 06:54:25

标签: python centos scrapy

我安装了所有包:

现在我有一个测试:

    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

怎么办?谢谢。

1 个答案:

答案 0 :(得分:1)

你如何安装scrapy? easy_install的?还是pip安装?或者python install setup.py?应该是路径问题。您需要将bin / scrapy脚本安装到PATH中的目录,例如/ usr / local / bin。

以下是一个类似的问题:Scrapy installation on OSX Lion