首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >在ubuntu / debian io.h上使用pip时出现twisted-iocpsupport错误

在ubuntu / debian io.h上使用pip时出现twisted-iocpsupport错误
EN

Stack Overflow用户
提问于 2021-03-02 03:31:45
回答 1查看 2.3K关注 0票数 11

接收错误:

代码语言:javascript
运行
复制
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'

使用

代码语言:javascript
运行
复制
channels==3.0.3
daphne==3.0.1
Twisted==21.2.0
twisted-iocpsupport==1.0.1

在docker环境中:

代码语言:javascript
运行
复制
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

也没有机会

或者

包括

命令也无济于事。

不确定是什么类型的

文件是必需的,以及如何获取它。在google上什么都没有出现,在twistedmatrix上的2500个公开问题中,我找不到任何与此相关的东西。这个版本似乎是从今天开始的,2021年3月1日。上的相同错误

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-03-02 09:04:47

twisted-iocpsupport是一个提供到Windows "I/O完成端口“API的绑定的包。这些是仅限Windows的API。

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

票数 16
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66428469

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档