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

问题解决!

相关推荐
默_笙3 天前
🍙 给每个请求过安检:FastAPI 是怎么把校验写进类型注解的
python
小羊没烦恼!3 天前
初探性能优化——2个月到4小时的性能提升
java·开发语言·windows·算法·c#
qq_426003963 天前
启动playwright录制codegen生成自动化测试脚本
python·自动化
虎头金猫3 天前
4K 视频总卡在公网带宽?用 N1 + OpenList 把网盘播放链路重新理顺
运维·服务器·网络·python·容器·beautifulsoup·pandas
长沙三为智能科技3 天前
家政小程序开发从0到上线:五阶段交付流程与验收清单
python
伞伞悦读3 天前
【第38期】Python 模块与包详解:import、from、模块搜索路径、包结构和 __init__
开发语言·python
只睡四小时3 天前
Canvas 弹道联机实战:700 行 + 固定时间步长
python·websocket·html5·游戏开发·canvas
C语言小火车3 天前
C/C++ 为什么需要编译器?
开发语言·c++
奇思妙想聪明勤奋的小羊3 天前
DeepAgents第5章:子Agent 与上下文隔离—让 Agent学会委派
人工智能·python·学习·语言模型
lpfasd1233 天前
2026年第38周GitHub趋势周报
python·科技·github