ImportError: Module use of python310.dll conflicts with this version of Python.

289 views
Skip to first unread message

bin yan

unread,
Aug 19, 2024, 9:24:43 PM8/19/24
to PyInstaller
I used Anaconda to create a virtual environment to package my Python program,  which worked fine before it was packaged, but reported an error after it ran Module use of python310.dll conflicts with this version of Python.

bin yan

unread,
Aug 19, 2024, 9:28:02 PM8/19/24
to PyInstaller
OS:win10
Pyinstaller:6.10.0
python:3.10.14
onnxruntime:1.19.0
Traceback (most recent call last):
  File "F:\项目学习\qt与C++\baidu_infer\baidu_infer\baidu_infer\baidu_infer.py", line 8, in <module>
    import onnxruntime as rt
  File "F:\项目学习\qt与C++\baidu_infer\baidu_infer\baidu_infer\onnxruntime\__init__.py", line 57, in <module>
    raise import_capi_exception
  File "F:\项目学习\qt与C++\baidu_infer\baidu_infer\baidu_infer\onnxruntime\__init__.py", line 23, in <module>
    from onnxruntime.capi._pybind_state import ExecutionMode  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\项目学习\qt与C++\baidu_infer\baidu_infer\baidu_infer\onnxruntime\capi\_pybind_state.py", line 32, in <module>
    from .onnxruntime_pybind11_state import *  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: Module use of python310.dll conflicts with this version of Python.

Reply all
Reply to author
Forward
0 new messages