本文介绍了如何在ubuntu 18.04仿生上安装加密技术?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在尝试安装python库密码时,我不断收到gcc错误.
I keep getting gcc errors when trying to install the python library cryptography.
主要错误是:
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
请注意,我将docker与 ubuntu:bionic
结合使用,并安装了以下项目:
Note I'm using docker with ubuntu:bionic
, and installing the following items:
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
推荐答案
感谢您在,我意识到我需要安装 libssl1.0
了!作为一个单独的问题发布,因为真的需要很长时间才能找到该答案.
Thank you to @pobe's comment in How to install cryptography on ubuntu? , I realized that I needed to install libssl1.0
instead! Posted as a separate question because it took a really long time to find that answer.
这篇关于如何在ubuntu 18.04仿生上安装加密技术?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!