ModuleNotFoundError: No module named ‘onnxruntime‘和ModuleNotFoundError: No module named ‘onnx‘

D:\programfiles\miniconda\envs\py38torch_gpu\python.exe C:/Users/liqiang/Desktop/handpose_x-master/onnx_inference.py
Traceback (most recent call last):
  File "C:/Users/liqiang/Desktop/handpose_x-master/onnx_inference.py", line 7, in <module>
    import onnxruntime
ModuleNotFoundError: No module named 'onnxruntime'

Process finished with exit code 1

 在miniconda或者Anaconda环境里安装onnxruntime

pip install onnxruntime  -i https://pypi.douban.com/simple/

D:\programfiles\miniconda\envs\py38torch_gpu\python.exe C:/Users/liqiang/Desktop/handpose_x-master/onnx_inference.py
Traceback (most recent call last):
  File "C:/Users/liqiang/Desktop/handpose_x-master/onnx_inference.py", line 8, in <module>
    import onnx
ModuleNotFoundError: No module named 'onnx'

在miniconda或者Anaconda环境里安装onnx

pip install onnx  -i https://pypi.douban.com/simple/

 

来源:长沙有肥鱼

物联沃分享整理
物联沃-IOTWORD物联网 » ModuleNotFoundError: No module named ‘onnxruntime‘和ModuleNotFoundError: No module named ‘onnx‘

发表评论