Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

太难装了有木有 #8

Closed
Nicolana opened this issue Feb 23, 2019 · 5 comments
Closed

太难装了有木有 #8

Nicolana opened this issue Feb 23, 2019 · 5 comments
Labels

Comments

@Nicolana
Copy link

太难装了有木有

@baabaaox
Copy link
Owner

@Nicolana 在哪一步碰到问题?

@Nicolana
Copy link
Author

@Nicolana 在哪一步碰到问题?

一开始是docker连网的问题,后来是pip安装依赖的问题。

@lxl315
Copy link

lxl315 commented Mar 19, 2019

creating tmp
cc -I/usr/include/libxml2 -I/usr/include/libxml2 -c /tmp/xmlXPathInitonlgxats.c -o tmp/xmlXPathInitonlgxats.o
/tmp/xmlXPathInitonlgxats.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int]
main (int argc, char **argv) {
^~~~
cc tmp/xmlXPathInitonlgxats.o -L/usr/lib -lxml2 -o a.out
error: command 'gcc' failed with exit status 4
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-c78el0ad/lxml/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-w74phaqz/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-c78el0ad/lxml/

ERROR: Service 'scrapy' failed to build: The command '/bin/sh -c apk add --update --no-cache gcc musl-dev libffi-dev libxml2-dev libxslt-dev jpeg-dev curl-dev make python3 python3-dev tzdata git curl && cp /usr/share/zoneinfo/Asia/Chongqing /etc/localtime && echo 'Asia/Chongqing' > /etc/timezone && apk del tzdata && python3 -m pip install -i https://mirrors.aliyun.com/pypi/simple/ --upgrade pip && python3 -m pip install -i https://mirrors.aliyun.com/pypi/simple/ scrapy pymysql pillow arrow scylla && git clone https://github.com/40robber/ScrapyDouban.git /srv/ScrapyDouban' returned a non-zero code: 1

docker 配置到这里报错了

@lxl315
Copy link

lxl315 commented Mar 19, 2019

好像是容器安装lxml 报错了?

@RabpitOO
Copy link

RabpitOO commented Apr 8, 2019

问一下这个配置的流程呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants