文章内容
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
如果出现了如下提示:
E: Package 'python-pip' has no installation candidate
只需要将 python-pip 替换成 python3-pip,最后命令如下:
sudo apt-get install python3 python-dev python3-dev \
build-essential libssl-dev libffi-dev \
libxml2-dev libxslt1-dev zlib1g-dev \
python3-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
评论列表