【踩坑日记】Mac m1 Python3.6安装torch_geometric

Mac m1 Python3.6安装torch_geometric

# 安装目标
torch-geometric==1.4.3
# 需要先安装以下依赖
torch-cluster==1.5.4
torch-scatter==2.0.4
torch-sparse==0.6.1
torch-spline-conv==1.2.0
  1. 先从https://pytorch-geometric.com/whl/torch-1.4.0.html下载四个依赖:

a. torch_cluster-1.5.4+cpu-cp36-cp36m-macosx_10_9_x86_64.whl
b. torch_scatter-2.0.4+cpu-cp36-cp36m-macosx_10_9_x86_64.whl
c. torch_sparse-0.6.1+cpu-cp36-cp36m-macosx_10_9_x86_64.whl
d. torch_spline_conv-1.2.0+cpu-cp37-cp37m-macosx_10_9_x86_64.whl

  1. 通过pip安装下载好的依赖
pip install torch_cluster-1.5.4+cpu-cp36-cp36m-macosx_10_9_x86_64.whl torch_scatter-2.0.4+cpu-cp36-cp36m-macosx_10_9_x86_64.whl torch_sparse-0.6.1+cpu-cp36-cp36m-macosx_10_9_x86_64.whl torch_spline_conv-1.2.0+cpu-cp36-cp36m-macosx_10_9_x86_64.whl
  1. 在安装好以上四个依赖的基础上,安装torch_geometric
pip install torch_geometrics

猜你喜欢

转载自blog.csdn.net/weixin_46421722/article/details/128705016