You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

降级Qiskit至0.29版本遇编译错误的解决咨询

安装Qiskit 0.29版本时遇到编译工具链错误的解决求助

我当前已安装Qiskit 1.2.0且运行正常,但需要使用Qiskit 0.29版本。执行pip install qiskit==0.29时出现Cython语法错误,参考相关方案后推测Qiskit 0.29.0仅兼容特定Python版本,因此在新conda环境中执行conda create -n "qiskit_029" python=3.8降级Python版本,再次执行pip install qiskit==0.29仍报错。

错误日志节选

Using cached h5py-3.2.1.tar.gz (368 kB) 

Installing build dependencies ... done 

Getting requirements to build wheel ... done 

Installing backend dependencies ... error 

error: subprocess-exited-with-error 

× pip subprocess to install backend dependencies did not run successfully. 
│ exit code: 1 
╰─> [212 lines of output] 
    Collecting numpy==1.19.3 
      Using cached numpy-1.19.3.zip (7.3 MB) 
      Installing build dependencies: started 
      Installing build dependencies: finished with status 'done' 
      Getting requirements to build wheel: started 
      Getting requirements to build wheel: finished with status 'done' 
      Preparing metadata (pyproject.toml): started 
      Preparing metadata (pyproject.toml): finished with status 'error' 
      error: subprocess-exited-with-error  

最终报错信息

RuntimeError: Broken toolchain: cannot link a simple C program 
            [end of output]   

我已尝试搜索相关解决方案但没有结果,请问该如何解决这个问题?是否有同类错误的参考方案?

补充信息:使用MacOS Sonoma 14.6.1系统


内容的提问来源于stack exchange,提问作者underdog987

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.18 23:22:04