栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

GNN学习笔记(一):PyTorch Geometric 环境搭建(win10+CPU+jupyter)

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

GNN学习笔记(一):PyTorch Geometric 环境搭建(win10+CPU+jupyter)

1 创建python虚拟环境
conda create -n env python=3.8

conda info --envs

conda activate env
2 安装pytorch

官方文档:PyTorch

 清华源:

-i https://pypi.tuna.tsinghua.edu.cn/simple some-package
pip3 install torch torchvision torchaudio -i https://pypi.tuna.tsinghua.edu.cn/simple some-package

我的版本:torch-1.11.0-cp38-cp38-win_amd64.whl

3 安装PyG (PyTorch Geometric)

官方文档: PyG documentation — pytorch_geometric 2.0.5 documentation

pip install torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric -f https://data.pyg.org/whl/torch-1.11.0+cpu.html -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
4 jupyter 指定虚拟环境

    进入虚拟环境:

    conda activate env
    pip install ipykernel -i https://pypi.tuna.tsinghua.edu.cn/simple some-package #不用清华源出现httperror

    向jupyter中添加虚拟环境,命名为env:

    python -m ipykernel install --name env

    jupyter notebook进入jupyter;jupyter页面 kernel-->change kernel 选择env

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/768015.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号