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

使用 docker-compose up -d 一键启动时报错 #99

Open
akaivn opened this issue Dec 27, 2020 · 7 comments
Open

使用 docker-compose up -d 一键启动时报错 #99

akaivn opened this issue Dec 27, 2020 · 7 comments

Comments

@akaivn
Copy link

akaivn commented Dec 27, 2020

各位前辈们好,一键安装时,好像报的是pip版本警告,但最后会出现error,求解答
image

@IC3-CR3AM
Copy link

我也是,直接改写Dockerfile,在里面upgrade pip就可以了

@zhijunlu
Copy link

zhijunlu commented Jan 7, 2021

build/temp.linux-x86_64-3.5/_openssl.c:50709:10: warning: implicit declaration of function 'i2d_re_X509_REQ_tbs' [-Wimplicit-function-declaration]
return i2d_re_X509_REQ_tbs(x0, x1);
^

    =============================DEBUG ASSISTANCE=============================
    If you are seeing a compilation error please try the following steps to
    successfully install cryptography:
    1) Upgrade to the latest pip and try again. This will fix errors for most
       users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
    2) Read https://cryptography.io/en/latest/installation.html for specific
       instructions for your platform.
    3) Check our frequently asked questions for more information:
       https://cryptography.io/en/latest/faq.html
    =============================DEBUG ASSISTANCE=============================

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

----------------------------------------

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-jkuv4dbr/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-chxc6wdv-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-jkuv4dbr/cryptography/
You are using pip version 8.1.1, however version 20.3.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
ERROR: Service 'web' failed to build : The command '/bin/sh -c pip3 install -r /requirement.txt -i http://pypi.doubanio.com/simple --trusted-host pypi.doubanio.com' returned a non-zero code: 1

@IC3-CR3AM
Copy link

各位前辈们好,一键安装时,好像报的是pip版本警告,但最后会出现error,求解答
image

我上面写了,在Dockerfile中 再python下载完之后添加一句 pip3 install --upgrade pip
我是这么解决的

@xiaozhaha
Copy link

我再Dockerfile文件里面这样改
image
现在提醒这个,我添加的有问题吗?
image

@viktorRanT1
Copy link

@xiaozhaha
改成 RUN pip3 install --upgrade "pip < 21.0"
好像是pip自动升级版本太高了

@xiaozhaha
Copy link

@xiaozhaha
改成 RUN pip3 install --upgrade "pip < 21.0"
好像是pip自动升级版本太高了

谢谢大佬,用了你的建议,完美解决,后续的兄弟可以参考下。

@hanbc00
Copy link

hanbc00 commented Mar 18, 2021

Step 12/19 : RUN pip3 install --upgrade "pip < 21.0" ---> Using cache ---> 82522fb5109c Step 13/19 : RUN pip3 install -r /requirement.txt -i http://pypi.doubanio.com/simple --trusted-host pypi.doubanio.com ---> Running in bfa03d55d29f DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality. Looking in indexes: http://pypi.doubanio.com/simple ERROR: Could not find a version that satisfies the requirement django==2.1.5 ERROR: No matching distribution found for django==2.1.5 ERROR: Service 'web' failed to build: The command '/bin/sh -c pip3 install -r /requirement.txt -i http://pypi.doubanio.com/simple --trusted-host pypi.doubanio.com' returned a non-zero code: 1

为什么还是报错

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

No branches or pull requests

6 participants