文章内容

2018/7/5 13:50:27,作 者: 黄兵

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

I wanted to install scrapy in virtualenv using pip (Python 3.5) but I get the following
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

I tried with Python 2.7 but I get the same error



for scrapy with Python 3, you'll need

sudo apt-get install python3 python-dev python3-dev \
     build-essential libssl-dev libffi-dev \
     libxml2-dev libxslt1-dev zlib1g-dev \
     python-pip

with Python 2, you'll need

sudo apt-get install python-dev  \
     build-essential libssl-dev libffi-dev \
     libxml2-dev libxslt1-dev zlib1g-dev \
     python-pip


分享到:

发表评论

评论列表