搞了整整一天终于配置好了。。。= =
1、创建虚拟环境
conda create -n xxx python=3.6.11conda activate xxx
2、conda install pytorch=1.4 pytorch官网的指令安装的是最新版本,不适配!!!后面会安装不上torch-geometric库
3、两种方法:(我是使用方法二成功的)
- 使用官方文档里的方法无脑依次进行检查并安装torch-geometric等库。。。
- 官方方法无效,使用官方文档方法直到验证完版本信息后,
不再使用文档内的安装语句,使用如下语句 改成自己需要的版本后,进行安装。
pip install torch-scatter==latest+${CUDA} -f https://pytorch-geometric.com/whl/torch-1.5.0.html
pip install torch-sparse==latest+${CUDA} -f https://pytorch-geometric.com/whl/torch-1.5.0.html
pip install torch-cluster==latest+${CUDA} -f https://pytorch-geometric.com/whl/torch-1.5.0.html
pip install torch-spline-conv==latest+${CUDA} -f https://pytorch-geometric.com/whl/torch-1.5.0.html
python setup.py install or

最低0.47元/天 解锁文章
3184

被折叠的 条评论
为什么被折叠?



