Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #4219

Merged
merged 2 commits into from
Oct 24, 2023
Merged

Dev #4219

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion akshare/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2561,9 +2561,10 @@
1.11.45 add: add stock_balance_sheet_by_report_delisted_em interface
1.11.46 add: add akracer support
1.11.47 add: add akracer 0.0.8 support
1.11.48 fix: fix installation.md
"""

__version__ = "1.11.47"
__version__ = "1.11.48"
__author__ = "AKFamily"

import sys
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@

## 更新说明详情

1.11.48 fix: fix installation.md

1. 修复 installation.md

1.11.47 add: add akracer 0.0.8 support

1. 修复 akracer 0.0.8 support
Expand Down Expand Up @@ -3030,6 +3034,8 @@

## 版本更新说明

1.11.48 fix: fix installation.md

1.11.47 add: add akracer 0.0.8 support

1.11.46 add: add akracer support
Expand Down
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