在ubuntu/debian io.h上使用pip时出现扭曲的-iocpSupport错误 [英] twisted-iocpsupport error when using pip on ubuntu / debian io.h missing

查看:21
本文介绍了在ubuntu/debian io.h上使用pip时出现扭曲的-iocpSupport错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

接收错误:

 Building wheel for twisted-iocpsupport (PEP 517): started
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /tmp/tmpv8s6qz76 build_wheel /tmp/tmp9l8hgcva
       cwd: /tmp/pip-install-qsr4j4x_/twisted-iocpsupport
  Complete output (13 lines):
  running bdist_wheel
  running build
  running build_ext
  building 'twisted_iocpsupport.iocpsupport' extension
  creating build
  creating build/temp.linux-x86_64-3.8
  creating build/temp.linux-x86_64-3.8/twisted_iocpsupport
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Itwisted_iocpsupport -I/usr/include/pyth
on3.8 -c twisted_iocpsupport/iocpsupport.c -o build/temp.linux-x86_64-3.8/twisted_iocpsupport/iocpsupport.o
  twisted_iocpsupport/iocpsupport.c:631:10: fatal error: io.h: No such file or directory
    631 | #include "io.h"
        |          ^~~~~~
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for twisted-iocpsupport
  Building wheel for twisted-iocpsupport (PEP 517): finished with status 'error'

channels==3.0.3
daphne==3.0.1
Twisted==21.2.0
twisted-iocpsupport==1.0.1

在坞站环境中:

FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get -y install python3 python3-pip

WORKDIR /usr/src/app

# Copy requirements
COPY requirements.txt ./

RUN pip3 install -r requirements.txt
python:3.8debian:10.8上也没有机会 在apt命令中包括python-dev也无济于事。

不确定需要哪种类型的io.h文件以及如何获取它。在谷歌上没有什么真正的弹出,在twistedMatrix上的2500个公开问题中,我找不到任何与此相关的东西。发布日期似乎是从2021年3月1日开始。1.0.0

上出现相同错误

推荐答案

Twisted-iocpSupport是一个提供到Windows I/O完成端口和API的绑定的包。这些是仅限Windows的API。

您不能在Debian上使用此程序包。幸运的是,您也不需要这样做,因为您可以访问一个良好的基于Linux的非阻塞I/O系统-EPOLL-它在Twisted中得到支持,而不需要使用任何额外的包。

这篇关于在ubuntu/debian io.h上使用pip时出现扭曲的-iocpSupport错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆