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

Can't install torchtext due to torch version #2045

@FanYang98

Description

@FanYang98

❓ 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions