ming024 / FastSpeech2

An implementation of Microsoft's "FastSpeech 2: Fast and High-Quality End-to-End Text to Speech"
MIT License
1.84k stars 535 forks source link

ModuleNotFoundError: No module named 'distutils.msvccompiler' #236

Open bvajk opened 1 month ago

bvajk commented 1 month ago

All I did was checkout the repo and run pip3 install -r .\requirements.txt I even tried this in a new conda env

the full error is

error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [24 lines of output]
      Running from numpy source directory.
      <string>:460: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
      Traceback (most recent call last):
        File "C:\Users\vajk\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "C:\Users\vajk\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "C:\Users\vajk\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 149, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
        File "C:\Users\vajk\AppData\Local\Temp\pip-build-env-vo0sslfr\overlay\Lib\site-packages\setuptools\build_meta.py", line 373, in prepare_metadata_for_build_wheel
          self.run_setup()
        File "C:\Users\vajk\AppData\Local\Temp\pip-build-env-vo0sslfr\overlay\Lib\site-packages\setuptools\build_meta.py", line 503, in run_setup
          super().run_setup(setup_script=setup_script)
        File "C:\Users\vajk\AppData\Local\Temp\pip-build-env-vo0sslfr\overlay\Lib\site-packages\setuptools\build_meta.py", line 318, in run_setup
          exec(code, locals())
        File "<string>", line 489, in <module>
        File "<string>", line 465, in setup_package
        File "C:\Users\vajk\AppData\Local\Temp\pip-install-f7wqoc2q\numpy_36b8927f5743401e9722af4d96b1a25d\numpy\distutils\core.py", line 24, in <module>
          from numpy.distutils.command import config, config_compiler, \
        File "C:\Users\vajk\AppData\Local\Temp\pip-install-f7wqoc2q\numpy_36b8927f5743401e9722af4d96b1a25d\numpy\distutils\command\config.py", line 19, in <module>
          from numpy.distutils.mingw32ccompiler import generate_manifest
        File "C:\Users\vajk\AppData\Local\Temp\pip-install-f7wqoc2q\numpy_36b8927f5743401e9722af4d96b1a25d\numpy\distutils\mingw32ccompiler.py", line 28, in <module>
          from distutils.msvccompiler import get_build_version as get_build_msvc_version
      ModuleNotFoundError: No module named 'distutils.msvccompiler'
      [end of output]
VJJJJJJ1 commented 1 month ago

same problem, have you solved it ?

aabdumalikov commented 1 week ago

same problem, have you solved it ?

you have to install numpy's new version