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安装

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐