text
text copied to clipboard
torchtext.experimental is not unable to install via nighly build version
❓ 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?
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.
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 torchtextand 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?
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.
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.
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?
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.