无法从“polygon”导入名称“RESTClient”

问题描述 投票:0回答:1

当我尝试使用 python 连接多边形 API 时:

from polygon import RESTClient

结果是:

cannot import name 'RESTClient' from 'polygon'

但我不知道为什么它不起作用。上周本来没有错误。

输入:

from polygon import RESTClient

结果:

cannot import name 'RESTClient' from 'polygon'
python import polygon rest-client
1个回答
0
投票

我遇到了这个问题 - 这是因为我安装了多边形包 - 当我需要安装 Polygon-api-client 时

安装正确的软件包修复了它

© www.soinside.com 2019 - 2024. All rights reserved.