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
- 先从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
- 通过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
- 在安装好以上四个依赖的基础上,安装
torch_geometric
pip install torch_geometrics