记一次大模型测试,吓我一跳
先上图,直接看。
·
先上图,直接看:C知道-开发者的首选AI搜索引擎

我提问的问题是:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[1], line 1
----> 1 from qiskit import Aer, QuantumCircuit, execute
3 # 创建量子电路实例
4 qc = QuantumCircuit(2)
File /opt/conda/lib/python3.11/site-packages/qiskit/__init__.py:38
36 _suppress_error = os.environ.get("QISKIT_SUPPRESS_1_0_IMPORT_ERROR", False) == "1"
37 if int(_major) > 0 and not _suppress_error:
---> 38 raise ImportError(
39 "Qiskit is installed in an invalid environment that has both Qiskit >=1.0"
40 " and an earlier version."
41 " You should create a new virtual environment, and ensure that you do not mix"
42 " dependencies between Qiskit <1.0 and >=1.0."
43 " Any packages that depend on 'qiskit-terra' are not compatible with Qiskit 1.0 and"
44 " will need to be updated."
45 " Qiskit unfortunately cannot enforce this requirement during environment resolution."
46 " See https://qisk.it/packaging-1-0 for more detail."
47 )
49 import qiskit._accelerate
50 import qiskit._numpy_compat
ImportError: Qiskit is installed in an invalid environment that has both Qiskit >=1.0 and an earlier version. You should create a new virtual environment, and ensure that you do not mix dependencies between Qiskit <1.0 and >=1.0. Any packages that depend on 'qiskit-terra' are not compatible with Qiskit 1.0 and will need to be updated. Qiskit unfortunately cannot enforce this requirement during environment resolution. See https://qisk.it/packaging-1-0 for more detail.
火山引擎开发者社区是火山引擎打造的AI技术生态平台,聚焦Agent与大模型开发,提供豆包系列模型(图像/视频/视觉)、智能分析与会话工具,并配套评测集、动手实验室及行业案例库。社区通过技术沙龙、挑战赛等活动促进开发者成长,新用户可领50万Tokens权益,助力构建智能应用。
更多推荐
所有评论(0)