babysor / babysor/MockingBird

【小白提问】AttributeError: module 'distutils' has no attribute 'version' 怎么解??这个问题困扰了一下午都没能解决

Open
#409 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
36.9k
Forks
5.2k
PR merge metrics
No merged PRs in 30d

Description

D:\MockingBird-main>python synthesizer_train.py man D:\制作数据集\SV2TTS\synthesizer
Traceback (most recent call last):
File "synthesizer_train.py", line 2, in
from synthesizer.train import train
File "D:\MockingBird-main\synthesizer\train.py", line 5, in
from torch.utils.tensorboard import SummaryWriter
File "C:\Users\VisionMNext\AppData\Roaming\Python\Python36\site-packages\torch\utils\tensorboard\__init__.py", line 4, in
LooseVersion = distutils.version.LooseVersion
AttributeError: module 'distutils' has no attribute 'version'

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the command in synthesizer_train.py and inspect the imports in synthesizer/train.py, especially torch.utils.tensorboard and its distutils.version access. Compare the environment's Python and PyTorch versions with the traceback, then confirm that the training entry point imports successfully without the AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.