gpt4 book ai didi

python - 如何在 ubuntu 18.04 bionic 上安装加密技术?

转载 作者:行者123 更新时间:2023-12-01 07:21:19 26 4
gpt4 key购买 nike

尝试安装 python 库加密时,我不断收到 gcc 错误。

主要错误是:

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

注意,我将 docker 与 ubuntu:bionic 一起使用,并安装以下项目:

ENV DEBIAN_FRONTEND=noninteractive 
RUN apt-get update && apt-get install -y \
build-essential \
python3 \
python3-pip \
python3-dev \
git \
libffi-dev \
libssl-dev

这是更长的日志输出:

    At top level:
build/temp.linux-x86_64-3.6/_openssl.c:3555:13: warning: '_ssl_thread_locking_function' defined but not used [-Wunused-function]
static void _ssl_thread_locking_function(int mode, int n, const char *file,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Can't rollback cryptography, nothing uninstalled.
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-6z_lweq8/cryptography/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-3303ra3b-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-6z_lweq8/cryptography/
The command '/bin/sh -c pip3 install --no-cache-dir -r requirements.txt' returned a non-zero code: 1

最佳答案

感谢@pobe 在 How to install cryptography on ubuntu? 中的评论,我意识到我需要安装 libssl1.0 !作为一个单独的问题发布,因为花了非常很长时间才找到答案。

关于python - 如何在 ubuntu 18.04 bionic 上安装加密技术?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57684081/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com