首页 > 解决方案 > 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 检查日志以获取完整的命令输出。

标签: pythongoogle-colaboratory

解决方案


推荐阅读