欢迎光临
我们一直在努力

Centos7运行python脚本时报错No module named 'six'

在运行模型python脚本时报错如下内容:

Traceback (most recent call last):
  File "tools/onnx_custom.py", line 7, in 
    from paddle2onnx.command import program2onnx
  File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/paddle2onnx/__init__.py", line 16, in 
    from . import command
  File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/paddle2onnx/command.py", line 16, in 
    from six import text_type as _text_type
ModuleNotFoundError: No module named 'six'

操作办法

python3 -m pip install six --trusted-host  pypi.tuna.tsinghua.edu.cn -i https://pypi.tuna.tsinghua.edu.cn/simple

文章来源于互联网:Centos7运行python脚本时报错No module named ‘six’

赞(0)
未经允许不得转载:莱卡云 » Centos7运行python脚本时报错No module named 'six'