解决arm64机器上的RuntimeError: Native library not available at libmini_racer.glibc.so报错

narcissuskid
发布于 2023-08-10 / 159 阅读 / 0 评论 / 0 点赞

解决arm64机器上的RuntimeError: Native library not available at libmini_racer.glibc.so报错

问题描述

arm64机器上安装akshare后运行报错

RuntimeError: Native library not available at /usr/local/lib/python3.7/dist-packages/py_mini_racer/libmini_racer.glibc.so

#解决方法

  1. 卸载已安装的akshare
  2. 下载基于arm64的PyMiniRacer的编译包
wget https://gitee.com/fasiondog/hikyuu_extern_libs/releases/download/1.0.0/py_mini_racer-0.6.0-py3-none-linux_aarch64.whl
  1. 安装PyMiniRacer
pip install py_mini_racer-0.6.0-py3-none-linux_aarch64.whl
  1. 安装akshare
pip install akshare

Reference

  1. https://blog.csdn.net/KongDong/article/details/130182040?spm=1001.2014.3001.5501
  2. https://github.com/sqreen/PyMiniRacer/issues/143

评论