Python Binance API错误
当我尝试使用Binance API时,我会收到此错误:
Traceback (most recent call last):
File "/Users/lironmeir/Documents/Py/trad/main.py", line 1, in <module>
from binance import Client, ThreadedWebsocketManager, ThreadedDepthCacheManager
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/binance/__init__.py", line 9, in <module>
from binance.client import Client, AsyncClient # noqa
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/binance/client.py", line 3, in <module>
import aiohttp
ModuleNotFoundError: No module named 'aiohttp'
安装在正确的文件夹中的库,一切都很好,但是某处出现了问题,我只是无法设法使用API。
When I try to work with the Binance API I get this error:
Traceback (most recent call last):
File "/Users/lironmeir/Documents/Py/trad/main.py", line 1, in <module>
from binance import Client, ThreadedWebsocketManager, ThreadedDepthCacheManager
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/binance/__init__.py", line 9, in <module>
from binance.client import Client, AsyncClient # noqa
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/binance/client.py", line 3, in <module>
import aiohttp
ModuleNotFoundError: No module named 'aiohttp'
The library installed in the right folder and everything is fine but something went wrong somewhere and I just can't manage to work with the API.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的Env中未安装“ AIOHTTP”库。激活您的env并安装“ AIOHTTP”,然后重试
The "aiohttp" library is not installed in your env. Activate your env and install "aiohttp" and try again