conda create -n env python=3.8 conda info --envs conda activate env2 安装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-package4 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



