简体   繁体   English

运行代码时出现 ib_insync 错误

[英]ib_insync errors when running codes

Am having the following errors whenever i run codes in the ide after following all instructions to setup ib_insync在遵循所有设置 ib_insync 的说明后,每当我在 ide 中运行代码时,都会出现以下错误

John约翰

1. 1.

import ib_insync
print(ib_insync.__all__)

ModuleNotFoundError  Traceback (most recent call last)
<ipython-input-1-473401a31836> in <module>
      import ib_insync
      print(ib_insync.__all__)

ModuleNotFoundError: No module named 'ib_insync'
from ib_insync import *
util.startLoop()

ModuleNotFoundError  Traceback (most recent call last)
<ipython-input-2-eaa7c0a329d2> in <module>
       from ib_insync import *
       util.startLoop()

ModuleNotFoundError: No module named 'ib_insync'

The import is failing.导入失败。

You either didn't install the module correctly, or you are trying to run your script in the wrong environment (make sure the IDE is running your code in the same place you installed the module).您要么没有正确安装模块,要么试图在错误的环境中运行脚本(确保 IDE 在安装模块的同一位置运行代码)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM