Error Code 1 Installing Scrapy

前端 未结 2 1408
执念已碎
执念已碎 2021-01-14 01:08

I am trying to install the Scrapy module for Python. I am using the command:

pip install Scrapy

But I get the following error:

<         


        
相关标签:
2条回答
  • 2021-01-14 01:41

    you can install it via pip wheel.
    Download from here wheel package. Scrapy

    Then install with

    pip install wheel       #  to install support for wheel files.
    pip install Scrapy‑1.0.3‑py2‑none‑any.whl        # to install the wheel.
    

    EDIT: If on ubuntu or another debian based os:

    try:

    sudo apt-get install python-dev
    
    sudo apt-get install libxml2-dev libxslt1-dev
    

    and then again try to install scrapy.

    On Mac Osx :

    Install brew package manager from :Brew

    Then try to use brew install package_name

    0 讨论(0)
  • 2021-01-14 01:41

    Apparently I needed to install the Xcode command line tools. (Even if you have Xcode installed.) I have the latest beta of Xcode, but I still needed to install the command line tools.

    xcode-select --install
    

    And then running pip install scrapy worked fine.

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