Github-Monitor icon indicating copy to clipboard operation
Github-Monitor copied to clipboard

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

Open akaivn opened this issue 5 years ago • 7 comments

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

akaivn avatar Dec 27 '20 03:12 akaivn

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

IC3-CR3AM avatar Jan 06 '21 11:01 IC3-CR3AM

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

zhijunlu avatar Jan 07 '21 11:01 zhijunlu

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

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

IC3-CR3AM avatar Jan 07 '21 11:01 IC3-CR3AM

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

xiaozhaha avatar Mar 18 '21 01:03 xiaozhaha

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

viktorRanT1 avatar Mar 18 '21 02:03 viktorRanT1

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

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

xiaozhaha avatar Mar 18 '21 02:03 xiaozhaha

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

为什么还是报错

hanbc00 avatar Mar 18 '21 08:03 hanbc00