text icon indicating copy to clipboard operation
text copied to clipboard

torchtext.experimental is not unable to install via nighly build version

Open AlexSchumi opened this issue 3 years ago • 6 comments

❓ Questions and Help

Description

I was trying to use the torchtext.experimental module in my code and use pip install --pre torch torchtext -f https://download.pytorch.org/whl/nightly/cu102/torch_nightly.html to install the package. Previously it worked but days ago, when i did this and do from torchtext.experimental.transforms import sentencepiece_processor, it showed that ModuleNotFoundError: No module named 'torchtext.experimental'. Anyone knows that other option I can use to install experimental module?

AlexSchumi avatar Mar 07 '22 21:03 AlexSchumi

can you try to make sure there is no parallel installation for torchtext (perhaps some other release version)? May be try to do pip uninstall torchtext and then redo the installation using nightly. Alternatively, try creating a new Conda environment and do the installation.

parmeet avatar Mar 07 '22 22:03 parmeet

can you try to make sure there is no parallel installation for torchtext (perhaps some other release version)? May be try to do pip uninstall torchtext and then redo the installation using nightly. Alternatively, try creating a new Conda environment and do the installation.

Thanks @parmeet! I tried to uninstall and reinstall, but it still didn't work for me. 4 days ago, its still working. Is there any changes in the nightly built version?

AlexSchumi avatar Mar 08 '22 00:03 AlexSchumi

I tried to uninstall and reinstall, but it still didn't work for me. 4 days ago, its still working. Is there any changes in the nightly built version?

Hmm interesting, not that I am aware of. I tried to installed nightly using conda install torchtext -c pytorch-nightly on my mac, and it seems working fine for me.

parmeet avatar Mar 08 '22 00:03 parmeet

Thanks @parmeet! I tested on my local mac and it works. But when I tried to install the package on the AWS SageMaker, it didn't work.

AlexSchumi avatar Mar 08 '22 18:03 AlexSchumi

I found that the torchtext nightly built version was for python3.6+, but I have python3.6, does anyone know how to install torchtext(with experimental module) in python3.6?

AlexSchumi avatar Mar 13 '22 04:03 AlexSchumi

I found that the torchtext nightly built version was for python3.6+, but I have python3.6, does anyone know how to install torchtext(with experimental module) in python3.6?

you may try to build both torch and torchtext from source on python 3.6 platform, although I am not sure if there will be issues since python 3.6 is no longer supported.

parmeet avatar Mar 14 '22 13:03 parmeet