python - google colab-lxml 的构建轮(setup.py)...错误错误:lxml 的构建轮失败
问题描述
我在 Windows 操作系统中。我正在使用 google colab,运行代码时出现这些错误。我找到此链接 [https://lxml.de/installation.html]。我不熟悉Linux,所以如何解决它只是在google colab中。任何提示将不胜感激。
!pip install -q kaggle
!pip install -q kaggle-cli
lxml(setup.py)的构建轮......错误
错误:lxml 构建轮子失败
Running setup.py install for lxml ... error
错误:命令出错,退出状态为 1:/usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-g0j7kmu8/lxml_93339675a71644a6aa1498a90b070e38/setup.py'"'"'; file ='"'"'/tmp/pip-install-g0j7kmu8/lxml_93339675a71644a6aa1498a90b070e38/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', 打开)( file ) if os.path.exists( file ) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\ r\n'"'"', '"'"'\n'"'"');f.close();, '"'"'exec'"'"'))' 安装 --record /tmp/pip-record-u1erza7w/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/lxml 检查日志以获取完整的命令输出。
解决方案
推荐阅读
- python - 如何使用 xpath 不绝对选择文本值跨度等于数字的所有 li 元素?
- javascript - 如何从另一个执行上下文获取 Nodejs 中的数据
- php - 如何从 WordPress 插件中提取页面标签列表?
- angular - 带有 Angular 10 的 firebase-analytics,捆绑错误
- python - 遍历列表和单个元素的列表
- android - 未找到 setFragmentResult 和 setFragmentResultListener 包(未解决的参考)
- javascript - 如何通过jquery添加图标以选择选项
- haskell - 将 String 映射到 Haskell 中的数据类型
- flutter - 如何从颤振飞镖中的两个字符串生成一个字符串/哈希
- xml - XSLT:根据模式将数字列表与分隔符连接起来