Skip to content

在linux系统上上无法导入其他文件夹的模块 #1014

@MirindaFrank

Description

@MirindaFrank

环境:魔塔云服务器,ubuntu20.04
描述:1. 进入models/match/kim 执行 python -u trainer.py -m config.yaml -o mode=train 报错无法找到utils包。
2. 但在我的win10系统环境下是能够执行的。
报错: root@123445:/mnt/workspace/PaddleRec/models/match/kim# python -u trainer.py -m config.yaml -o mode=train
Traceback (most recent call last):
File "trainer.py", line 29, in
from utils.utils_single import load_yaml, load_dy_model_class, get_abs_model, create_data_loader
ModuleNotFoundError: No module named 'utils.utils_single'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions