The d2lzh_pytorch package is needed when studying Chapter 3 "Fundamentals of Deep Learning" of Li Mu's "Hands-on Deep Learning (Python Edition)" (the official address of the original book: Hands-on Deep Learning (Python Edition) ). Package, please refer to the article: Li Mu hands-on deep learning (pytorch version) "d2lzh_pytorch" package missing installation problem
After the author downloads the d2lzh_pytorch package according to the aforementioned article and puts it in the correct directory, an error will still be reported when citing it, prompting:
ModuleNotFoundError: No module named 'torchtext'
The author searched many articles on the Internet and tried many times, but all failed. Finally, according to other people's experience and my own exploration, I entered the following installation command in the command line of Anaconda's corresponding environment to succeed:
conda install -c https://conda.anaconda.org/pytorch torchtext
This question is relatively small, I hope it can help you.