当前位置:网站首页>Moment Pool Cloud quickly installs packages such as torch-sparse and torch-geometric
Moment Pool Cloud quickly installs packages such as torch-sparse and torch-geometric
2022-07-31 04:56:00 【Machine learning is the devil】
Rent a machine and choose an environment according to the environment you need. I chose Pytorch 1.10 here.

Click the Jupyterlab link on the rental page after the rental is successful.

Create a new Terminal in Jupyterlab to install the environment. First check the Pytorch and CUDA versions. You can see my environment Pytorch 1.10.0 and CUDA 11.3 as shown below.

Next install torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric packages.
- The official installation method provided by PyG (there will be errors in some torch versions):
pip install torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric -f https://data.pyg.org/whl/torch-{version}+cu{version}.html
The torch and cuda versions in the official source link need to be changed to the corresponding ones in their own server environment.
https://data.pyg.org/whl/torch-{version}+cu{version}.htmlSuch as CUDA11.3 Pytorch1.10.0 corresponding link: https://data.pyg.org/whl/torch-1.10.0+cu113.htmlThere may be problems with the official installation method: If the version of the package is not specified during pip installation, the latest version will be installed by default. Take CUDA11.3 Pytorch1.10.0 as an example to install torch-sparse, fromOfficial sourceYou can see that the latest version of torch-sparse is 0.6.13, but the machine defaultsThe latest version in the source is: 0.6.14, so even if we specify the -f parameter during the installation process, pip will choose to install the updated 0.6.14 from the default source (error-prone, also need to compile, very troublesome).
- Our suggested installation method:
When installing torch-sparse, specify the version and the official source address, so that the installation will be installed from the official source download package. The official source is the whl installation package that has been compiled in the corresponding environment, which can avoid the compilation process., the installation is faster, and there are no unnecessary errors.
Get the following installation instructions (note that I am CUDA11.3 Pytorch1.10.0, if you have other versions, please change the torch and cuda versions in the official source to their corresponding ones):
pip install torch-scatter torch-sparse==0.6.13 torch-cluster torch-spline-conv -f https://data.pyg.org/whl/torch-1.10.0+cu113.htmlAfter the installation is complete, install torch-geometric, torch-geometric is not in the official source, so just pip install it directly:
pip install torch-geometricNote: If there is a version requirement, you can specify the version during installation, which will make the installation easier.
After the above installation is complete, the relevant packages can be successfully imported.

Specific use reference: official documentation
边栏推荐
- input输入框展示两位小数之precision
- Unity手机游戏性能优化系列:针对CPU端的性能调优
- ERROR 1064 (42000) You have an error in your SQL syntax; check the manual that corresponds to your
- [py script] batch binarization processing images
- Summary of MySQL common interview questions (recommended collection!!!)
- mysql数据库安装(详细)
- The input input box displays the precision of two decimal places
- ERP生产作业控制 金蝶
- 扫雷小游戏——C语言
- unity2d小游戏
猜你喜欢

12个MySQL慢查询的原因分析

【线性神经网络】softmax回归

STM32HAL library modifies Hal_Delay to us-level delay

centos7安装mysql5.7步骤(图解版)

MySQL数据库安装配置保姆级教程(以8.0.29为例)有手就行

MySQL window function

打造基于ILRuntime热更新的组件化开发

MySQL database backup

ERROR 1819 (HY000) Your password does not satisfy the current policy requirements

DVWA shooting range environment construction
随机推荐
聚变云原生,赋能新里程 | 2022开放原子全球开源峰会云原生分论坛圆满召开
Unity打灵狐者
The MySQL database installed configuration nanny level tutorial for 8.0.29 (for example) have hands
MySQL数据库必会的增删查改操作(CRUD)
打造基于ILRuntime热更新的组件化开发
MySQL优化:从十几秒优化到三百毫秒
ERROR 1819 (HY000) Your password does not satisfy the current policy requirements
【云原生】DevOps(五):集成Harbor
ERROR 1064 (42000) You have an error in your SQL syntax; check the manual that corresponds to your
STM32HAL库修改Hal_Delay为us级延时
Unity URP渲染管线摄像机核心机制剖析
centos7安装mysql5.7
参考代码系列_1.各种语言的Hello World
MySQL optimization: from ten seconds to three hundred milliseconds
CentOS7 install MySQL graphic detailed tutorial
数字经济时代的开源数据库创新 | 2022开放原子全球开源峰会数据库分论坛圆满召开
The 15th day of the special assault version of the sword offer
Doris学习笔记之监控
Blockbuster | foundation for platinum, gold, silver gave nameboards donors
Sun Wenlong, Secretary General of the Open Atom Open Source Foundation |