Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'SwissArmyTransformer' #133

Open
B-1368 opened this issue Sep 9, 2023 · 6 comments
Open

ModuleNotFoundError: No module named 'SwissArmyTransformer' #133

B-1368 opened this issue Sep 9, 2023 · 6 comments

Comments

@B-1368
Copy link

B-1368 commented Sep 9, 2023

您好,我用pip安装了SwissArmyTransformer-0.4.5,但无法导入。已经确认安装在PYTHONPATH路径里了,换了好几台机器都是这样,不知道如何解决?多谢

@1049451037
Copy link
Member

import sat

@B-1368
Copy link
Author

B-1368 commented Sep 9, 2023

import sat
是先import sat再import SwissArmyTransformer吗?还是不太行啊

>>> import sat
[2023-09-09 08:40:09,351] [INFO] [real_accelerator.py:158:get_accelerator] Setting ds_accelerator to cuda (auto detect)
[2023-09-09 08:40:11,026] [INFO] webdataset not install, use pip to install, or you cannot use SimpleDistributedWebDataset and MetaDistributedWebDataset.
>>> import SwissArmyTransformer
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'SwissArmyTransformer'

@wangzhaode
Copy link

wangzhaode commented Sep 23, 2023

同样的问题,以下方法可以解决:

  • 指定版本安装pip install SwissArmyTransformer==0.2.8

@xiefan233
Copy link

同样的问题,以下方法可以解决:

  • 指定版本安装pip install SwissArmyTransformer==0.2.8

可是我依旧存在问题,请问还有什么办法吗?

@1049451037
Copy link
Member

import sat,而不是import SwissArmyTransformer

@xiefan233
Copy link

import sat,而不是import SwissArmyTransformer

感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants