Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
albertandking committed Oct 24, 2023
1 parent 1ed938d commit e605ef7
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

## 安装 [AKShare](https://github.com/akfamily/akshare)

提示:目前已经支持苹果 M 系列处理器安装 [AKShare](https://github.com/akfamily/akshare),请参考[AKShare 文档-苹果 M 系列处理器支持](https://akshare.akfamily.xyz/installation.html#m1)

### 通用安装

```
Expand Down Expand Up @@ -39,26 +37,9 @@ P.S. **由于目前版本更新迭代频繁, 请在使用 [AKShare](https://gith
pip install akshare --upgrade -i https://pypi.org/simple
```

## 苹果处理器支持

### 缘起

AKShare 由于使用 [PyMiniRacer](https://blog.sqreen.com/embedding-javascript-into-python/) 项目来支持在 Python 中运行 JavaScript
代码,所以要完整的使用 AKShare 的全部功能需要安装该库。

但是由于苹果的 M 系列芯片采用 ARM 架构,而 [PyMiniRacer](https://blog.sqreen.com/embedding-javascript-into-python/) 并没有编译相对应的
版本,所以造成在 M 系列芯片的计算机上使用 AKShare 会出问题。

### 解决方案

本次的解决方案是提供编译好的文件供大家下载使用:[libmini_racer.dylib](https://jfds-1252952517.cos.ap-chengdu.myqcloud.com/akshare/software/pyminiracer/libmini_racer.dylib)
只需要把该文件下载到本地,然后存放在报错提示的路径即可,如果你使用的是 macOS 系统自带的 Python,则这个路径一般是 `/Users/<username>/Library/Python/<python_version>/lib/python/site-packages/py_mini_racer`
具体可以找到自己机器 Python 第三方包的下载路径。

### 扩展阅读
## M系列芯片

1. 如果上述文档未能解决您的问题;可以观看《AKShare-初阶-使用教学》课程,里面手把手带您进行环境配置
2. 如果需要编译,请参考该文章:[Building V8 on an M1 MacBook](https://joyeecheung.github.io/blog/2021/08/27/binding-v8-on-an-m1-macbook/)
1. 如果需要编译,请参考该文章:[Building V8 on an M1 MacBook](https://joyeecheung.github.io/blog/2021/08/27/binding-v8-on-an-m1-macbook/)

## R 语言调用支持

Expand Down

0 comments on commit e605ef7

Please sign in to comment.