If you are working on colab and try importing torchtext then you will get torchtext error like this.
OSError: /usr/local/lib/python3.10/dist-packages/torchtext/lib/libtorchtext.so: undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKSs
`
This error comes because of version mismatch.
Try this, this will solve the error.
`!pip3 install -q torch==2.2.0 torchtext==0.17.0 –index-url https://download.pytorch.org/whl/cu118
rahul bhole is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
Try this, this will solve the issue.
!pip3 install -q torch==2.2.0 torchtext==0.17.0 --index-url https://download.pytorch.org/whl/cu118
!pip install -q -U portalocker==2.8.2
`
rahul bhole is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.