使用ctp的python接口

使用ctp的python接口

2023年7月10日发(作者:)

使⽤ctp的python接⼝在github上查到⼀个项⽬ctpwrapper在按照⽂档按照的时候报错>>>pip install cython --upgrade>>>pip install ctpwrapper --upgrade在安装第⼆个命令的时候第⼀个问题安装yum install -y gcc-c++ 解决第⼆个问题ctpwrapper/:39:20: 致命错误:Python.h:没有那个⽂件或⽬录查找问题,需要python的dev⽂件 没有正确安装pythondev的头⽂件和静态库下载对应的python包的dev为apt (乌本图Debian.。):sudo apt-get install python-dev # for python2.x installssudo apt-get install python3-dev # for python3.x installs为yum (CentOS,RHEL.。):sudo yum install python-devel # for python2.x installssudo yum install python34-devel # for python3.4 installs为dnf (软呢帽.。):sudo dnf install python2-devel # for python2.x installssudo dnf install python3-devel # for python3.x installs为zypper (开诚布公.。):sudo zypper in python-devel # for python2.x installssudo zypper in python3-devel # for python3.x installs为apk (阿尔卑斯⼭.。):# This is a departure from the normal Alpine naming# scheme, which uses py2- and py3- prefixessudo apk add python2-dev # for python2.x installssudo apk add python3-dev # for python3.x installs为apt-cyg (西格温.。):apt-cyg install python-devel # for python2.x installsapt-cyg install python3-devel # for python3.x installs如果需要⽤最新的上期api,可使⽤项⽬中的setup⽂件中⼼⽣成,⽣成的ctpwrapper替换到site-package下的⽂件即可使⽤,请求⽅法会调⽤原⽣的api,响应的返回可以根据⾃⼰的需要进⾏定制,需要注意的点,在请求与返回之间最好加上,

发布者:admin,转转请注明出处:http://www.yc00.com/web/1688930805a184723.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信