PythonAnywhere includes many PyTorch packages but not torchtext
. And when I try to install torchtext
, it pulls in a newer version of torch
than what's already installed:
pip3.10 install --user torchtext
Collecting torch==1.12.1
Downloading torch-1.12.1-cp310-cp310-manylinux1_x86_64.whl (776.3 MB)
Installing collected packages: torch, torchtext
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.
torchvision 0.12.0+cpu requires torch==1.11.0, but you have torch 1.12.1 which is incompatible.
torchaudio 0.11.0+rocm4.5.2 requires torch==1.11.0, but you have torch 1.12.1 which is incompatible.
Successfully installed torch-1.12.1 torchtext-0.13.1
So, this newer version of torch
breaks torchvision
and torchaudio
which depended on the older version. Does someone know enough about Python package versioning to help me out?