Script doesn't think torch is installed on Mac

#21
by calmclear - opened
pip install torch
Requirement already satisfied: torch in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (2.4.0)

Script doesn't think torch is installed

WARNING: You are running this unofficial E2/F5 TTS demo locally, it may not be as up-to-date as the hosted version (https://huggingface.co/spaces/mrfakename/E2-F5-TTS)
Traceback (most recent call last):
  File "/Users/ck/Documents/E2-F5-TTS-AI/app_local.py", line 5, in <module>
    import torch
ModuleNotFoundError: No module named 'torch'```

Hi,
Please try installing torch using python -m pip install -U torch and then run python app_local.py

Requirement already satisfied: pip in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (24.2)
(myenv) MacOS Terminal# E2-F5-TTS-AI % python app_local.py
WARNING: You are running this unofficial E2/F5 TTS demo locally, it may not be as up-to-date as the hosted version (https://huggingface.co/spaces/mrfakename/E2-F5-TTS)
Traceback (most recent call last):
  File "/Users/ck/Documents/E2-F5-TTS-AI/app_local.py", line 6, in <module>
    import torch
ModuleNotFoundError: No module named 'torch'
(myenv)MacOS Terminal# o E2-F5-TTS-AI % pip install torch
Requirement already satisfied: torch in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (2.4.0)
Requirement already satisfied: filelock in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from torch) (3.13.4)
Requirement already satisfied: typing-extensions>=4.8.0 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from torch) (4.12.2)
Requirement already satisfied: sympy in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from torch) (1.13.2)
Requirement already satisfied: networkx in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from torch) (3.3)
Requirement already satisfied: jinja2 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from torch) (3.1.4)
Requirement already satisfied: fsspec in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from torch) (2024.6.1)
Requirement already satisfied: MarkupSafe>=2.0 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from jinja2->torch) (2.1.5)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from sympy->torch) (1.3.0)
(myenv) MacOS Terminal# E2-F5-TTS-AI % ```
ERROR: Could not find a version that satisfies the requirement requirements.txt (from versions: none)
HINT: You are attempting to install a package literally named "requirements.txt" (which cannot exist). Consider using the '-r' flag to install the packages listed in requirements.txt
ERROR: No matching distribution found for requirements.txt```

Please try running the following commands:

python -m pip install torch
python -m pip install -r requirements.txt
python app.py

Thanks!

mrfakename changed discussion status to closed

Sign up or log in to comment