- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
问:
在我的 docker 容器中,我使用已经预安装 gcc 的 apline linux 系统
apk信息:
bash-4.4# apk info
....
gcc
bash-4.4# pip install multidict
Collecting multidict
Using cached https://files.pythonhosted.org/packages/84/96/5503ba866d8d216e49a6ce3bcb288df8a5fb3ac8a90b8fcff9ddcda32568/multidict-4.7.3.tar.gz
Building wheels for collected packages: multidict
Building wheel for multidict (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-79jceuft/multidict/setup.py'"'"'; __file__='"'"'/tmp/pip-install-79jceuft/multidict/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-57k4lw21 --python-tag cp37
cwd: /tmp/pip-install-79jceuft/multidict/
....
/usr/local/include/python3.7m/Python.h:11:20: fatal error: limits.h: No such file or directory
#include <limits.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-79jceuft/multidict/setup.py'"'"'; __file__='"'"'/tmp/pip-install-79jceuft/multidict/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-lomj_vmk/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
最佳答案
简单的解决方法是在 dockerfile 中添加以下命令:
RUN apk --no-cache add gcc musl-dev
感谢@Zosionlee 的提示。
关于python - 在 alpine docker 容器中安装 multidict 时如何修复 gcc 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59539137/
我从 HTML 表单发送数据,我用 python( Pyramid 框架)处理它,这就是我的看法: @view_config(renderer='json', request_method='POS
我有一本字典 params = ImmutableMultiDict([('dataStore', 'tardis'), ('symbol', '1'), ('symbol', '2')]) 我希望能
我正在尝试组合一个代码,以组合方式将给定输入字符串中的唯一字符替换为字典中的相应值,同时保留“非”唯一字符的位置。 例如,我有以下字典: d = {'R':['A','G'], 'Y':['C','T
我想从 Webob 转换 POST MultiDict到嵌套字典。例如 所以来自 POST: 'name=Kyle&phone.number=1234&phone.type=home&phone.nu
我正在使用 Aiohttp 的 multidict() 实现。 拿着这个: >>> d = MultiDict[('a', 1), ('b', 2), ('a', 3)]) >>> d 我要转换 d
我使用 Flask (python) 发布表单时收到的 MultiDict (ImmutableMultiDict) 是 ImmutableMultiDict([ ('disabled', '
我收到一个 POST 请求,其中的数据格式为 MultiDict 对象。在哪里可以找到有关此数据结构的文档?以及将这些数据解码为字典对象(内部包含列表和字典)的最佳方法(库)是什么 我确实找到了 th
所以在我的 Flask 应用程序中,我在前端有一个表单,其中填充了多个用户。每个用户都与一个名为“selected_user”的复选框相关联。提交时,表单通过标准 HTML 表单控件发布(没有 jav
from wtforms import Form, BooleanField, TextField, validators,PasswordField class LoginForm(Form):
问: 在我的 docker 容器中,我使用已经预安装 gcc 的 apline linux 系统 apk信息: bash-4.4# apk info .... gcc 但是当我安装 multidict
对于 scala.collection.mutable.Set[String] with scala.collection.MultiDict[Int,String]> inherits diffe
尝试使用 pip install 下载 discord.py,在标题中给了我错误消息。 我使用 cmd 和命令 py -m pip install -U discord 安装,该 cmd 也在管理员中
我是一名优秀的程序员,十分优秀!