This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Description
❓ Questions and Help
I want to install torchtext, but I met this problem: torch 2.0.0a0+git3df0e26 is installed but torch==1.13.1 is required by {'torchdata'}.
I installed pytorch by following commands:
git clone --recursive https://github.com/pytorch/pytorch.git
export PYTORCH_HOME=$(pwd)/pytorch
cd pytorch
export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname $(which conda))/../"}
python setup.py develop
And I install torchtext by following commands:
git clone --recursive https://github.com/pytorch/text
cd text
python setup.py clean install
Then, I met a problem:
Installed /home/pt-gpu/anaconda3/envs/yf/lib/python3.8/site-packages/torchtext-0.15.0a0+04a4c30-py3.8-linux-x86_64.egg
Processing dependencies for torchtext==0.15.0a0+04a4c30
error: torch 2.0.0a0+gite7ace1f is installed but torch==1.13.1 is required by {'torchdata'}
Could you please tell me how I can solve this problem without degrading torch?