当前位置:   article > 正文

error: command ‘x86_64-linux-gnu-gcc‘ failed with exit status 1_error: command '/usr/bin/x86_64-linux-gnu-gcc' fai

error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1

bug

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

  1. #include "Python.h"
  2. ^~~~~~~~~~
  3. compilation terminated.
  4. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  5. ----------------------------------------
  6. Command "/home/python/.virtualenvs/py3_flask/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-icyoxyvz/mysqlclient/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-woj3ol_8/install-record.txt --single-version-externally-managed --compile --install-headers /home/python/.virtualenvs/py3_flask/include/site/python3.6/mysqlclient" failed with error code 1 in /tmp/pip-install-icyoxyvz/mysqlclient/

解决办法:

for scrapy with Python 3, you’ll need

  1. sudo apt-get install python3 python-dev python3-dev \
  2. build-essential libssl-dev libffi-dev \
  3. libxml2-dev libxslt1-dev zlib1g-dev \
  4. python-pip

with Python 2, you’ll need

  1. sudo apt-get install python-dev \
  2. build-essential libssl-dev libffi-dev \
  3. libxml2-dev libxslt1-dev zlib1g-dev \
  4. python-pip

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/189242
推荐阅读
相关标签
  

闽ICP备14008679号