[英]I am trying to simply connect to the ibapi (Interactive Brokers API), but I am having some technical troubles with Flask
I am trying to simply connect to the ibapi (Interactive Brokers API), but I am having some technical troubles with Python 3.7 . 我试图简单地连接到ibapi(交互式经纪人API),但是我在使用Python 3.7时遇到了一些技术问题。 What I did so far: 到目前为止,我做了什么:
C:\\TWS API\\source\\pythonclient
and run python setup.py install
我运行了C:\\TWS API\\source\\pythonclient
并运行python setup.py install
I got: 我有:
ModuleNotFoundError: No module named 'ibapi'
when I try to import it What I am doing wrong here and how can I fix this simple error? 当我尝试导入它时,我在这里做错了什么,如何解决这个简单的错误?
My flask project is created in a virtual env named Ibconnect ( (IBconnect) C:\\Users\\Admin\\dev\\IBconnect> on the command Windows ) and I think that I have to install the python client here but I don't know how to do it. 我的Flask项目是在名为Ibconnect的虚拟环境中创建的((Windows上的(IBconnect)C:\\ Users \\ Admin \\ dev \\ IBconnect>)),我认为我必须在这里安装python客户端,但我不知道如何去做吧。
Please try to use Anaconda - Spyder. 请尝试使用Anaconda-Spyder。 In Anaconda prompt (just activates the conda environment) and navigate to the dir C:\\TWS API\\source\\pythonclient
and run python setup.py install 在Anaconda提示符下(只需激活conda环境)并导航到dir C:\\TWS API\\source\\pythonclient
并运行python setup.py install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.