简体   繁体   English

我正在尝试简单地连接到ibapi(交互式经纪人API),但是Flask出现了一些技术问题

[英]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: 到目前为止,我做了什么:

  1. I installed the latest version for Windows 10 of the API 我为Windows 10的API安装了最新版本
  2. I ran 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.

相关问题 我正在尝试从 API 获取数据但出现错误 - I am trying to get data from API but having error 我正在尝试通过 Rust 中的 OpenWeather API 获取数据,但我想我在解析方面面临一些问题 - I am trying to get data over an OpenWeather API in Rust but I am facing some iusse regarding parsing I guess 我无法使用 Python 为 Flask 设置计费周期 - I am having trouble setting up billing cycles for Flask with Python 我正在尝试使用 getx 获取 slider 图像但出现错误 - i am trying to fetch slider image using getx but having error 我在使用 Uber Python API 时遇到了麻烦 - I'm having troubles with Uber Python API 我在使用 flask 打印此 API 的响应时出错 - I am getting error in printing the response of this API using flask 我正在尝试使用 api.lookup_user 访问一些 twitter 用户 ID,但是当我运行它时,我得到了 tweeperror - I am trying to access some twitter user id's using api.lookup_user , but when i run this , i get tweeperror 我在改造 android 中使用 Login Api 时遇到问题 - I am having issue to consume Login Api in retrofit android JAVA Interactive Brokers API - JAVA Interactive brokers api 由于日志错误,无法连接到 Interactive Brokers Api - Cannot connect to Interactive Brokers Api because of a logging error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM