Skip to content

Commit b3cc220

Browse files
committed
docs: add install troubleshooting tip
1 parent b422dcc commit b3cc220

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ print(result)
2626
这个接口默认只要传 `type` 就可以拿当前热榜。`time``keyword``time_start``time_end``limit``sources` 都是按场景再传的可选参数。
2727

2828
> [!TIP]
29-
> 请使用与运行脚本相同的 Python 解释器安装依赖,例如执行 `python -m pip install uapi-sdk-python` 后再运行 `python main.py`。在 VS Code / Pyright 中若提示 “Import uapi could not be resolved”,将解释器切换到当前虚拟环境即可恢复补全。
29+
> 请使用与运行脚本相同的 Python 解释器安装依赖,推荐直接执行 `python -m pip install -U uapi-sdk-python` 后再运行 `python main.py`
30+
> 如果安装时提示 `No matching distribution found for uapi-sdk-python`,请先执行 `python --version` 确认当前解释器是否为 Python 3.9 及以上,再执行 `python -m pip install -U pip` 后重试。
31+
> 在 VS Code / Pyright 中若提示 “Import uapi could not be resolved”,将解释器切换到当前虚拟环境即可恢复补全。
3032
3133
## 特性
3234

0 commit comments

Comments
 (0)