question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed installing scrapy

See original GitHub issue

sudo pip3 install scrapy

When I’m installing scrapy in my computer, this is the error I’m getting:

Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-xfj07fck/cffi/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-h3d3uz53-record/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-build-xfj07fck/cffi/

Screenshots

deepinscreenshot20160411234951 deepinscreenshot20160411235007

deepinscreenshot20160411235035

My computer runs on Deepin Linux OS (15.1). I already tried upgrading setuptools: sudo pip3 install --upgrade setuptools. Still getting the same error. Thank you in advance for helping!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
redapplecommented, Apr 11, 2016

@AFAgarap , you need a few dev headers packages installed on your machine to install Scrapy.

Here’s an example Dockerfile using Ubuntu 14.04: https://gist.github.com/redapple/cd9c31eeab8c4d5ea9eef7b200c3d4d0

Deepin looks Debian-based, so you should be good with:

apt-get install -y \
    python3 \
    python-dev \
    python3-dev

for cryptography dependency:

apt-get install -y \
    build-essential \
    libssl-dev \
    libffi-dev

for lxml

apt-get install -y \
    libxml2-dev \
    libxslt-dev
1reaction
redapplecommented, Apr 12, 2016

Thanks for the heads up! Happy scraping

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation error while installing scrapy - python - Stack Overflow
1 Answer 1 ... Fist, you can try to upgrade setuptools and try again. (You did not specify is there problem only with...
Read more >
Error when install scrapy in window by using pip ... - GitHub
I got it to work by issuing the pip install scrapy command in the Developer Command Prompt for Visual Studio. 2
Read more >
Got Error When Install Pip Install Scrapy Error?How To Fix Pip ...
I want to install Scrapy to learn and hone my skill. But, i got this error about Twisted cannot be installed. Pip install...
Read more >
Installation guide — Scrapy 2.7.1 documentation
Though it's possible to install Scrapy on Windows using pip, we recommend you to install Anaconda or Miniconda and use the package from...
Read more >
Instant Solution for Scrapy failed building wheel for Twisted
Step 1: Try installing pip install Twisted · Step 2: Try installing Twisted manually via wheel (.whl) · 7 Responses.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found