在官网https://pytorch.org/#pip-install-pytorch上找到步骤:
1 | pip3 install http://download.pytorch.org/whl/cu91/torch-0.4.0-cp36-cp36m-win_amd64.whl |
但安装后import torch
报错
1 | Traceback (most recent call last): |
解决:https://blog.csdn.net/grllery/article/details/80308122
put the dll files in Library\bin into a dir
append the path of it to the environment variable PATH.
这样其实也不能解决,但是在上述路径中直接运行cmd就可以了……不太影响使用