'''
pip install torch_sparse
Collecting torch_sparse
Using cached torch_sparse-0.6.12.tar.gz (43 kB)
Requirement already satisfied: scipy in /home/tanojlangore/anaconda3/envs/my-rdkit-env/lib/python3.7/site-packages (from torch_sparse) (1.7.3)
Requirement already satisfied: numpy<1.23.0,>=1.16.5 in /home/tanojlangore/anaconda3/envs/my-rdkit-env/lib/python3.7/site-packages (from scipy->torch_sparse) (1.21.2)
Building wheels for collected packages: torch-sparse
Building wheel for torch-sparse (setup.py) ... [?25l-“”“
它持续了无限的时间..。
发布于 2022-06-06 18:37:19
根据正式文档https://pytorch-geometric.readthedocs.io/en/latest/notes/installation.html,如果您使用的是PyTorch版本<=1.9.*,您需要指定您正在安装的包的版本号如下:
pip3 install torch-sparse==0.6.12 --no-cache-dir -f https://data.pyg.org/whl/torch-1.9.0+cu111.html发布于 2021-12-24 14:11:53
我认为您可以使用这个web工具为您的情况创建工作版本。例如,如果我选择pytorch1.10..*+ Linux + pip + CPU,我将获得:
pip install torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric -f https://data.pyg.org/whl/torch-1.10.0+cpu.html我只能保持火炬稀疏:
pip install torch-sparse -f https://data.pyg.org/whl/torch-1.10.0+cpu.html如果你有一个版本的火把<1.9。*你可能会有问题。
https://stackoverflow.com/questions/70450671
复制相似问题