linux安装软件提示加密错误,CFFI在Python(Linux)虚拟环境中尝试在ven中安装加密包时失败…

在虚拟环境中安装cffi时遇到错误,但似乎是在安装。这些错误是否真的很关键,在安装加密技术时可能会导致它失败(见下文)

pip install cffi==1.11.5Downloading/unpacking cffi==1.11.5

Downloading cffi-1.11.5.tar.gz (438kB): 438kB downloaded

Running setup.py (path:/[venv-install-directory]/build/cffi/setup.py) egg_info for package cffi

Downloading/unpacking pycparser (from cffi==1.11.5)

Downloading pycparser-2.18.tar.gz (245kB): 245kB downloaded

Running setup.py (path:/[venv-install-directory]/build/pycparser/setup.py) egg_info for package pycparser

warning: no previously-included files matching ‘yacctab.’ found under directory ‘tests’

warning: no previously-included files matching ‘lextab.’ found under directory ‘tests’

warning: no previously-included files matching ‘yacctab.’ found under directory ‘examples’

warning: no previously-included files matching ‘lextab.’ found under directory ‘examples’

Installing collected packages: cffi, pycparser

Running setup.py install for cffi

building ‘_cffi_backend’ extension

gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/local/lib/libffi-3.2.1/include -I/[venv-install-directory]/include -I/usr/local/include/python3.4m -c c/_cffi_backend.c -o build/temp.linux-i686-3.4/c/_cffi_backend.o

gcc -pthread -shared build/temp.linux-i686-3.4/c/_cffi_backend.o -L/usr/local/lib -lffi -o build/lib.linux-i686-3.4/_cffi_backend.cpython-34m.so

Could not find .egg-info directory in install record for cffi==1.11.5

Running setup.py install for pycparser

warning: no previously-included files matching ‘yacctab.’ found under directory ‘tests’

warning: no previously-included files matching ‘lextab.’ found under directory ‘tests’

warning: no previously-included files matching ‘yacctab.’ found under directory ‘examples’

warning: no previously-included files matching ‘lextab.’ found under directory ‘examples’

Build the lexing/parsing tables

Could not find .egg-info directory in install record for pycparser (from cffi==1.11.5)

Successfully installed cffi pycparser

Cleaning up…

此问题令人费解,因为它可以在本地系统上运行,但在创建虚拟环境时,在尝试安装加密技术的过程中发生以下错误:File “[path-to-venv]/build/cryptography/src/_cffi_src/utils.py”, line 57, in build_ffi

ffi = FFI()

File “[path-to-venv]/lib/python3.4/site-packages/cffi/api.py”, line 46, in __init__

import _cffi_backend as backend

ImportError: [path-to-venv]/lib/python3.4/site-packages/_cffi_backend.cpython-34m.so: undefined symbol: __syscall_error

虚拟环境实际上创建了本地环境的副本,不是吗

那么,在系统安装本身没有问题的情况下,“cffi_backend”如何在虚拟环境中不起作用一开始不明白这是怎么发生的。在

有没有人成功地解决了这个问题果你有想法或解决方案,请具体说明,因为我已经花了好几个小时尝试解决方案,到目前为止还没有奏效。在

在创建虚拟环境之前,我已经尝试过从源代码编译和安装libffi:https://sourceware.org/libffi/

是否有其他方法可以创建不需要重新安装每个软件包的虚拟环境如,在那里可以使用现有的已安装安装的设置并将其直接复制到虚拟环境中(或以类似的方式避免陷入依赖地狱)

这似乎是一个简单的问题,一旦你掌握了实际的问题就可以解决。如果我搞不清这一点,我就不能部署我的项目,因为它在很大程度上依赖于加密技术。因此,提前感谢您提出的任何有助于解决此问题的想法。在

文章知识点与官方知识档案匹配,可进一步学习相关知识Python入门技能树预备知识安装Python211463 人正在系统学习中 相关资源:截取软件够累的-其它工具类资源-CSDN文库

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2021年4月11日
下一篇 2021年4月11日

相关推荐