我正在尝试在 apache 服务器上运行 django 项目。django 服务器本身运行良好,但通过 mod_wsgi 运行时失败。它返回错误如下:
OSError: Cannot load native module 'Crypto.Cipher._raw_ecb': Trying '_raw_ecb.cpython-39-x86_64-linux-gnu.so': /home/user/django/centos_env/lib/python3.9/site-packages/Cryptodome/Util/../Cipher/_raw_ecb.cpython-39-x86_64-linux-gnu.so: failed to map segment from shared object, Trying '_raw_ecb.abi3.so': /home/user/django/centos_env/lib/python3.9/site-packages/Cryptodome/Util/../Cipher/_raw_ecb.abi3.so: cannot open shared object file: No such file or directory, Trying '_raw_ecb.so': /home/user/django/centos_env/lib/python3.9/site-packages/Cryptodome/Util/../Cipher/_raw_ecb.so: cannot open shared object file: No such file or directory
我检查了该文件是否在那里。我检查了Python home变量并尝试从python解释器导入Crypto.Cipher(有效)。一切看起来都很好。
我尝试从源代码编译 pycryptodome 但它也没有帮助。
杨__羊羊
相关分类