Closed alexnev closed 2 months ago
Could you try pip install torch==2.1.1
in that same virtual env and see what you get?
I should lock down the versions of all the dependencies, I'd like to do that with pipenv but I haven't had time to get to that. Wondering if there's a newer release of torch that is causing some dependency problems... If the torch installed pinned to 2.1.1 works but you hit other issues, at least it can help point us in the right direction.
Same error still persists after trying to install 2.1.1
`(.venv) PS C:\epub2TTS\epub2tts> pip install torch==2.1.1
Collecting torch==2.1.1
Downloading torch-2.1.1-cp311-cp311-win_amd64.whl.metadata (26 kB)
Requirement already satisfied: filelock in c:\epub2tts\epub2tts\.venv\lib\site-packages (from torch==2.1.1) (3.9.0)
Requirement already satisfied: typing-extensions in c:\epub2tts\epub2tts\.venv\lib\site-packages (from torch==2.1.1) (4.8.0)
Requirement already satisfied: sympy in c:\epub2tts\epub2tts\.venv\lib\site-packages (from torch==2.1.1) (1.12)
Requirement already satisfied: networkx in c:\epub2tts\epub2tts\.venv\lib\site-packages (from torch==2.1.1) (3.2.1)
Requirement already satisfied: jinja2 in c:\epub2tts\epub2tts\.venv\lib\site-packages (from torch==2.1.1) (3.1.2)
Requirement already satisfied: fsspec in c:\epub2tts\epub2tts\.venv\lib\site-packages (from torch==2.1.1) (2023.4.0)
Requirement already satisfied: MarkupSafe>=2.0 in c:\epub2tts\epub2tts\.venv\lib\site-packages (from jinja2->torch==2.1.1) (2.1.3)
Requirement already satisfied: mpmath>=0.19 in c:\epub2tts\epub2tts\.venv\lib\site-packages (from sympy->torch==2.1.1) (1.3.0)
Downloading torch-2.1.1-cp311-cp311-win_amd64.whl (192.3 MB)
---------------------------------------- 192.3/192.3 MB 21.1 MB/s eta 0:00:00
Installing collected packages: torch
Attempting uninstall: torch
Found existing installation: torch 2.2.1+cu121
Uninstalling torch-2.2.1+cu121:
Successfully uninstalled torch-2.2.1+cu121
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
torchaudio 2.2.1+cu121 requires torch==2.2.1+cu121, but you have torch 2.1.1 which is incompatible.
torchvision 0.17.1+cu121 requires torch==2.2.1+cu121, but you have torch 2.1.1 which is incompatible.
Successfully installed torch-2.1.1`
Could you try editing requirements.txt and removing the "deepspeed" line? I tried on windows 11 and that was what was causing the problem. I am not sure why deepspeed won't install, maybe someone else who is running this on windows can chime in on that. But without deepspeed, the install went great for me, let me know if it works for you.
EDIT - actually pip install .
worked great but epub2tts doesn't run (I get a "ImportError: cannot import name 'etree' from 'lxml'" error). I'll poke at it a little bit to see if I can figure out what's going on. If you are able to run wsl and install it under that though, it will probably work out better for you.
Closing due to lack of response. If other people are hitting the same error on windows please mention it here and I'll re-open, and try running on windows.
pip install . --no-build-isolation
works for me
@aedocw
Edit - well...it fixed that error anyway
I've installed torch but it still gives the same error, i dont know what to do, please help. I'm on Windows 10