Scrapy installation on OSX Lion

前端 未结 1 727
暖寄归人
暖寄归人 2021-01-19 16:27

So I\'m trying to install Scrapy on Lion and am not sure if it\'s properly installed or not.

I followed the guide here http://doc.scrapy.org/en/latest/intro/install.

相关标签:
1条回答
  • 2021-01-19 17:28

    Well turns out it's likely a path issue.

    On my Mac, I used easy_install from /usr/bin.

    sudo /usr/bin/easy_install scrapy
    

    The resulting scrapy command is then installed into /usr/local/bin/scrapy.

    You might not have that directory in your path, so see if that's true with:

    echo $PATH
    

    If it isn't in there, you can temporarily add it like export PATH=/usr/local/bin:$PATH, or modify your ~/.bash_profile to add it permanently.


    Alternatively, I typically don't use the system installed Python in Mac - I install homebrew and install a separate version of Python, and install scrapy with that version (scrapy is then installed into /usr/local/share/python/scrapy).

    0 讨论(0)
提交回复
热议问题