zoukankan      html  css  js  c++  java
  • 安装pytorch_geometric

    https://pytorch-geometric.readthedocs.io/en/latest/

    https://github.com/rusty1s/pytorch_geometric

    pip install torch-scatter==latest+cu102 -f https://pytorch-geometric.com/whl/torch-1.6.0.html
    pip install torch-sparse==latest+cu102 -f https://pytorch-geometric.com/whl/torch-1.6.0.html
    pip install torch-cluster==latest+cu102 -f https://pytorch-geometric.com/whl/torch-1.6.0.html
    pip install torch-spline-conv==latest+cu102 -f https://pytorch-geometric.com/whl/torch-1.6.0.html
    pip install torch-geometric

    cpu版

    pip install torch-scatter==latest+cpu -f https://pytorch-geometric.com/whl/torch-1.6.0.html
    pip install torch-sparse==latest+cpu -f https://pytorch-geometric.com/whl/torch-1.6.0.html
    pip install torch-cluster==latest+cpu -f https://pytorch-geometric.com/whl/torch-1.6.0.html
    pip install torch-spline-conv==latest+cpu -f https://pytorch-geometric.com/whl/torch-1.6.0.html
    pip install torch-geometric

    遇到奇怪问题,不用管理员权限安装不上,

    pip时提示

    Defaulting to user installation because normal site-packages is not writeable

    安装上了,也必须用管理员身份启动控制台才能运行。

    太蛋疼了。后来发现是

    C:Program FilesPython38

    的写入权限,不对。

    而pytorch geometric 背后隐含调用的numba,会在这个文件夹下写入临时文件,如果权限不够,就写入不了,表现为卡死。

    强行添加的当前用户+完全控制

    再安装,完美。

  • 相关阅读:
    oracle spatial 类型
    感悟
    给年轻工程师的十大忠告
    美剧
    幸福人生讲座(一):不学礼,无以立
    人成长中须知道的20个故事
    孔子
    毕业五年决定你的一生
    sysindexes表中求SELECT COUNT(*)
    我们应该懂得
  • 原文地址:https://www.cnblogs.com/xuanmanstein/p/13509184.html
Copyright © 2011-2022 走看看