No module named 'tortoise.api' #290

Open
opened 2023-07-03 01:57:16 +00:00 by thefinex · 2 comments
from utils import *

File "C:??????????????????\ai-voice-cloning\src\utils.py", line 40, in
from tortoise.api import TextToSpeech as TorToise_TTS, MODELS, get_model_path, pad_or_truncate
ModuleNotFoundError: No module named 'tortoise.api'
Appuyez sur une touche pour continuer...
(venv) PS C:??????????????????\ai-voice-cloning> pip install tortoise.api
ERROR: Could not find a version that satisfies the requirement tortoise.api (from versions: none)
ERROR: No matching distribution found for tortoise.api

from utils import * File "C:\??????????????????\ai-voice-cloning\src\utils.py", line 40, in <module> from tortoise.api import TextToSpeech as TorToise_TTS, MODELS, get_model_path, pad_or_truncate ModuleNotFoundError: No module named 'tortoise.api' Appuyez sur une touche pour continuer... (venv) PS C:\??????????????????\ai-voice-cloning> pip install tortoise.api ERROR: Could not find a version that satisfies the requirement tortoise.api (from versions: none) ERROR: No matching distribution found for tortoise.api

Did you run the appropriate setup script for your platform?

Did you run the appropriate setup script for your platform?

On Windows:

Something is wrong with the virtual environment or too new Python version. Also ensure no python related environment variables are set to a specific path.

That package is internally supplied and cannot be installed through PIP.

On Linux:

The issue is likely because your Python version is too new, and one of the depencies errors upon installing if you scroll up.

To fix:

  • Install pyenv
  • pyenv install 3.9.17
  • pyenv virtualenv 3.9.17 tts
  • pyenv activate tts

Now go into the folder you cloned:

  • Linux: ./setup-cuda.sh Windows: setup-cuda.bat
  • Linux: ./start.sh Windows: start.bat

No more missing tortoise or tortoise.api, as we made it use 3.9.17 instead of the version of Python you have installed.

On Windows: Something is wrong with the virtual environment or too new Python version. Also ensure no python related environment variables are set to a specific path. That package is internally supplied and cannot be installed through PIP. On Linux: The issue is likely because your Python version is too new, and one of the depencies errors upon installing if you scroll up. To fix: - Install pyenv - pyenv install 3.9.17 - pyenv virtualenv 3.9.17 tts - pyenv activate tts Now go into the folder you cloned: - Linux: ./setup-cuda.sh Windows: setup-cuda.bat - Linux: ./start.sh Windows: start.bat No more missing tortoise or tortoise.api, as we made it use 3.9.17 instead of the version of Python you have installed.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mrq/ai-voice-cloning#290
No description provided.