news 2026/5/2 12:59:50

windows10 pip安装ete4报错

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
windows10 pip安装ete4报错

**ete4(Environment for Tree Exploration v4)**是生物信息学领域核心的Python库,专注于系统发育树(进化树)的构建、操作、可视化及分析,广泛应用于进化生物学、生态学、流行病学、基因组学等研究场景。

windows10 pip安装ete3可以,安装ete4就不行,报错信息:

pip install ete4 Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting ete4 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/fa/53/0ceedd63e4c872f668188a5de786a00b6b8854cb285a3dc69cd107c62038/ete4-4.4.0.tar.gz (1.4 MB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [34 lines of output] Error compiling Cython file: ------------------------------------------------------------ ... """ ^ ------------------------------------------------------------ ete4\core\operations.pyx:1:0: 'ete4\core\operations' is not a valid module name Compiling ete4\core\operations.pyx because it changed. Compiling ete4\core\tree.pyx because it changed. Compiling ete4\parser\newick.pyx because it changed. [1/3] Cythonizing ete4\core\operations.pyx Traceback (most recent call last): File "G:\comatespec\lingjingchong\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module> main() File "G:\comatespec\lingjingchong\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "G:\comatespec\lingjingchong\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-3y9j6ica\overlay\Lib\site-packages\setuptools\build_meta.py", line 333, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-3y9j6ica\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires self.run_setup() File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-3y9j6ica\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup exec(code, locals()) File "<string>", line 29, in <module> File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-3y9j6ica\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 1153, in cythonize cythonize_one(*args) File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-3y9j6ica\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 1297, in cythonize_one raise CompileError(None, pyx_file) Cython.Compiler.Errors.CompileError: ete4\core\operations.pyx [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed to build 'ete4' when getting requirements to build wheel

AI教给个方法,使用预编译版本安装,一次就过了!

pip install --only-binary=ete4 ete4

输出信息

(.venv) PS G:\traework\medai\acnes_amp_design> pip install --only-binary=ete4 ete4 Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting ete4 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f7/5a/af998ea73723e666e2b339694221ca24bcce5cae3913bed261752adecd02/ete4-4.0.0-py3-none-any.whl (1.6 MB) Collecting bottle (from ete4) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/83/f6/b55ec74cfe68c6584163faa311503c20b0da4c09883a41e8e00d6726c954/bottle-0.13.4-py2.py3-none-any.whl (103 kB) Collecting brotli (from ete4) Downloading https://pypi.tuna.tsinghua.edu.cn/packages/1c/4e/bc1dcac9498859d5e353c9b153627a3752868a9d5f05ce8dedd81a2354ab/brotli-1.2.0-cp312-cp312-win_amd64.whl (369 kB) Requirement already satisfied: numpy in G:\comatespec\lingjingchong\.venv\Lib\site-packages (from ete4) (1.26.4) Requirement already satisfied: scipy in G:\comatespec\lingjingchong\.venv\Lib\site-packages (from ete4) (1.16.3) Requirement already satisfied: requests in G:\comatespec\lingjingchong\.venv\Lib\site-packages (from ete4) (2.31.0) Requirement already satisfied: charset-normalizer<4,>=2 in G:\comatespec\lingjingchong\.venv\Lib\site-packages (from requests->ete4) (3.4.4) Requirement already satisfied: idna<4,>=2.5 in G:\comatespec\lingjingchong\.venv\Lib\site-packages (from requests->ete4) (3.11) Requirement already satisfied: urllib3<3,>=1.21.1 in G:\comatespec\lingjingchong\.venv\Lib\site-packages (from requests->ete4) (2.6.3) Requirement already satisfied: certifi>=2017.4.17 in G:\comatespec\lingjingchong\.venv\Lib\site-packages (from requests->ete4) (2025.11.12) Installing collected packages: brotli, bottle, ete4 Successfully installed bottle-0.13.4 brotli-1.2.0 ete4-4.0.0

问题解决!

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/5/3 11:24:44

不踩雷! 10个AI论文软件测评:本科生毕业论文与科研写作必备工具推荐

随着人工智能技术的不断发展&#xff0c;AI写作工具在学术领域的应用越来越广泛。对于本科生而言&#xff0c;撰写毕业论文不仅是一项重要的学术任务&#xff0c;也是一次对综合能力的考验。然而&#xff0c;面对繁重的写作任务、复杂的格式要求以及内容质量把控等问题&#xf…

作者头像 李华
网站建设 2026/4/18 11:31:29

【计算机毕业设计案例】基于springboot的餐饮食品安全监测及风险预警系统基于springboot的食品安全监测及风险预警系统的设计与实现(程序+文档+讲解+定制)

博主介绍&#xff1a;✌️码农一枚 &#xff0c;专注于大学生项目实战开发、讲解和毕业&#x1f6a2;文撰写修改等。全栈领域优质创作者&#xff0c;博客之星、掘金/华为云/阿里云/InfoQ等平台优质作者、专注于Java、小程序技术领域和毕业项目实战 ✌️技术范围&#xff1a;&am…

作者头像 李华
网站建设 2026/4/25 10:10:29

Java毕设选题推荐:基于Java+springboot食品安全检测风险预警系统基于springboot的食品安全监测及风险预警系统的设计与实现【附源码、mysql、文档、调试+代码讲解+全bao等】

博主介绍&#xff1a;✌️码农一枚 &#xff0c;专注于大学生项目实战开发、讲解和毕业&#x1f6a2;文撰写修改等。全栈领域优质创作者&#xff0c;博客之星、掘金/华为云/阿里云/InfoQ等平台优质作者、专注于Java、小程序技术领域和毕业项目实战 ✌️技术范围&#xff1a;&am…

作者头像 李华
网站建设 2026/4/23 17:06:59

Java计算机毕设之基于Java+springboot的名贵物品文物在线拍卖系统的设计与实现(完整前后端代码+说明文档+LW,调试定制等)

博主介绍&#xff1a;✌️码农一枚 &#xff0c;专注于大学生项目实战开发、讲解和毕业&#x1f6a2;文撰写修改等。全栈领域优质创作者&#xff0c;博客之星、掘金/华为云/阿里云/InfoQ等平台优质作者、专注于Java、小程序技术领域和毕业项目实战 ✌️技术范围&#xff1a;&am…

作者头像 李华