conda环境配置
安装环境:conda create -n #env python=3.x
删除环境:conda remove -n #env --all
激活环境:source activate #env
退出环境:source deactivate #env
查询pytorch版本
python -c "import torch; print(torch.__version__)"
查询cuda版本
python -c "import torch; print(torch.version.cuda)"
安装相关包
pip install torch-scatter -f https://data.pyg.org/whl/torch-${TORCH}+${CUDA}.html
pip install torch-sparse -f https://data.pyg.org/whl/torch-${TORCH}+${CUDA}.html
pip install torch-geometric
where ${CUDA} and ${TORCH} should be replaced by the specific CUDA version (cpu, cu102, cu113, cu115) and PyTorch version (1.10.0, 1.11.0)