当前位置:   article > 正文

源码安装pytorch_scatter, pytorch_cluster_pytorch cluster

pytorch cluster

动机

笔者使用清华镜像站作为pip源,直接pip install torch_scatterpip install torch_cluster安装不成功,考虑使用源码安装。下面以安装pytorch_cluster-1.4.5为例说明源码安装过程,pytorch_scatter的源码安装方式类似。
注意,安装pytorch_scatter, pytorch_cluster需要预先安装对应版本的pytorch

下载源码

可以从github找到对应版本的源码下载,也可以观察pip install torch-cluster==1.4.5的输出

Collecting torch-cluster==1.4.5 (from -r requirements.txt (line 75))
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c3/70/1d827d6fd1e03bb5ae84852dd0070c6574105c37e7b935284f6e990932db/torch_cluster-1.4.5.tar.gz
  • 1
  • 2

Ctrl-C结束pip install ttorch-cluster==1.4.5进程

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/458819
推荐阅读
相关标签
  

闽ICP备14008679号