降级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
相关产品推荐
相关产品推荐

