gpt4 book ai didi

python-3.x - libc.musl-x86_64.so.1 : cannot open shared object file

转载 作者:行者123 更新时间:2023-12-04 13:02:07 31 4
gpt4 key购买 nike

尝试运行 Django 数据库迁移时发现此错误:

File "/home/xxx/virtualenv/xxx/lib64/python3.6/site-packages/drf_ujson/renderers.py", line 4, in <module>
import ujson
ImportError: libc.musl-x86_64.so.1: cannot open shared object file: No such file or directory

环境详情:
  • ujson 版本 1.35
  • drf-ujson 1.2 版
  • 点子版本 18.1
  • python 版本 3.6.7
  • Fedora 27,Linux 内核 4.19

  • 你以前见过这个错误吗?你能给我一些建议来调试这个吗?

    最佳答案

    amazonlinux 镜像也有同样的问题
    首先你需要安装musl lib。它在 yum 中不存在,所以你必须从源代码编译它

    curl https://musl.libc.org/releases/musl-1.2.2.tar.gz -o musl-1.2.2.tar.gz
    tar -xvf musl-1.2.2.tar.gz
    cd musl-1.2.2
    ./configure
    make
    make install
    进而
    ln -s /usr/lib64/libc.so.6 /usr/lib64/libc.musl-x86_64.so.1
    如果/usr/lib64 中没有文件 libc.so.6 尝试使用 find / -name 'libc.so*' .目标文件应与 libc.so 位于同一目录中。例如,如果文件有路径/usr/lib/libc.so.6 你的命令将是 ln -s /usr/lib/libc.so.6 /usr/lib/libc.musl-x86_64.so.1

    关于python-3.x - libc.musl-x86_64.so.1 : cannot open shared object file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53856733/

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