解决报错UserWarning: Failed to initialize NumPy: DLL load failed while importing _multiarray_umath: 找不到指
·
E:\anaconda\envs\envcat\lib\site-packages\torch\_subclasses\functional_tensor.py:275: UserWarning: Failed to initialize NumPy: DLL load failed while importing _multiarray_umath: 找不到指定的模块。 (Triggered internally at C:\actions-runner\_work\pytorch\pytorch\pytorch\torch\csrc\utils\tensor_numpy.cpp:81.)
cpu = _conversion_method_template(device=torch.device("cpu"))
pip uninstall numpy
conda install numpy
卸载numpy用conda重新安装,不要用pip安装
更多推荐




所有评论(0)