Download it first, then cd to the corresponding directory
Then enter pip install d2l-0.15.1-py3-none-any.whl
The installation was successful
type python
import d2l no error
succeeded
one guy didn't make it
pip install --trusted-host pypi.tuna.tsinghua.edu.cn d2l
used this sentence successfully