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

安装完成后运行失败 #14

Closed
gdsdfn75 opened this issue Jul 27, 2024 · 3 comments
Closed

安装完成后运行失败 #14

gdsdfn75 opened this issue Jul 27, 2024 · 3 comments

Comments

@gdsdfn75
Copy link

您好,这是一个非常棒的工作。但我按照requirements.txt在python=3.8的环境中安装并执行训练后,出现以下错误:
Traceback (most recent call last):
File "basicsr/train.py", line 215, in
train_pipeline(root_path)
File "basicsr/train.py", line 117, in train_pipeline
tb_logger = init_tb_loggers(opt)
File "basicsr/train.py", line 25, in init_tb_loggers
tb_logger = init_tb_logger(log_dir=osp.join(opt['root_path'], 'tb_logger', opt['name']))
File "/home/student01/RGT-main/basicsr/utils/dist_util.py", line 80, in wrapper
return func(*args, **kwargs)
File "/home/student01/RGT-main/basicsr/utils/logger.py", line 120, in init_tb_logger
from torch.utils.tensorboard import SummaryWriter
File "/home/student01/anaconda3/envs/RGT/lib/python3.8/site-packages/torch/utils/tensorboard/init.py", line 4, in
LooseVersion = distutils.version.LooseVersion
AttributeError: module 'distutils' has no attribute 'version'
您能帮看一下是哪里的问题吗?非常感谢!

@zhengchen1999
Copy link
Owner

请问是新建的conda环境吗?如果是在已有环境中安装,可能会有库的版本不适配,导致问题。
可以尝试按照Dependencies,重新安装一个新的环境。

@gdsdfn75
Copy link
Author

请问是新建的conda环境吗?如果是在现有环境中安装,可能会有库的版本不改装,导致问题。 可以尝试按照依赖关系,重新安装一个新的环境。

感谢您的回复,我再重新安装一下。

@strongweight
Copy link

在这个github中的这个解决方法可以解决我的问题
pytorch/pytorch#69894
pip install setuptools==59.5.0

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

3 participants