问题描述
arm64机器上安装akshare后运行报错
RuntimeError: Native library not available at /usr/local/lib/python3.7/dist-packages/py_mini_racer/libmini_racer.glibc.so
#解决方法
- 卸载已安装的akshare
- 下载基于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
- 安装PyMiniRacer
pip install py_mini_racer-0.6.0-py3-none-linux_aarch64.whl
- 安装akshare
pip install akshare