51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

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

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

Traceback (most recent call last):
  File "tools/onnx_custom.py", line 7, in <module>
    from paddle2onnx.command import program2onnx
  File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/paddle2onnx/__init__.py", line 16, in <module>
    from . import command
  File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/paddle2onnx/command.py", line 16, in <module>
    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
赞(1)
未经允许不得转载:工具盒子 » Centos7运行python脚本时报错No module named 'six'