Install anaconda3.
pip --default-timeout=1000 install --upgrade mxnet-cu101 -i https://pypi.tuna.tsinghua.edu.cn/simple/
Or pip install --pre mxnet-cu101 -i https://pypi.douban.com/simple
。。。
Copy all dependent cuda dlls to lib\site-packages\mxnet\.
pip install d2l
pip install d2lzh
Install mxnet-cu102:
pip install mxnet-cu102==1.7.0 -f https://dist.mxnet.io/python/cu102
You also need to copy the dependencies to the lib\site-packages\mxnet\ directory of anaconda3. I copied all the files with the suffix of .dll in the bin directory of CUDA to use it.
reference:
https://blog.csdn.net/mod_13/article/details/105490656
https://blog.csdn.net/qq_33346150/article/details/109344598