La interfaz de pitón para uso ctp

Encontrado un proyecto en GitHub
ctpwrapper

De acuerdo con el documento que se está dado de acuerdo con el tiempo de

>>>pip install cython --upgrade
>>>pip install ctpwrapper --upgrade

Al instalar el segundo comando

La primera pregunta

Instalar yum install -y gcc-c ++ para resolver

La segunda pregunta
ctpwrapper / MdApi.cpp: 39: 20: Error grave: Python.h: No existe el fichero o directorio

Encontrar un problema que requiere el archivo pitón dev no está instalado archivos de cabecera y bibliotecas estáticas correctamente pythondev
dev descargar el paquete correspondiente pitón

为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

Supongo que te gusta

Origin www.cnblogs.com/0916m/p/12500862.html
Recomendado
Clasificación