当前位置:网站首页>Quickly install torch spark, torch geometric and other packages in moment pool cloud
Quickly install torch spark, torch geometric and other packages in moment pool cloud
2022-07-28 19:29:00 【cousin】
Rental machine , Choose a basic image according to your environment , What I choose here is Pytorch 1.10.
After the lease is successful, click... On the lease page Jupyterlab link .
Jupyterlab I'll build a new one Terminal Used to install the environment , First check Pytorch、CUDA edition , As shown in the figure below, you can see my environment Pytorch 1.10.0,CUDA 11.3.
Next install torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric These bags .
Officially recommended installation method ( The latter method is recommended ):
pip install torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric -f https://data.pyg.org/whl/torch-{version}+cu{version}.html
Among them, in the official source link torch and cuda The version needs to be changed to the corresponding one in your server environment .
https://data.pyg.org/whl/torch-{version}+cu{version}.html
Such as CUDA11.3 Pytorch1.10.0 Corresponding link :https://data.pyg.org/whl/torch-1.10.0+cu113.html
There may be problems with the official installation method : because pip If the package version is not specified during installation , The latest version is installed by default , With CUDA11.3 Pytorch1.10.0 install torch-sparse As an example , from Official source You can see torch-sparse The latest version is 0.6.13, But the latest version in the default source of the machine is :0.6.14, So even if we specify -f Parameters ,pip You will also choose to install updates from the default source 0.6.14( It's easy to make mistakes , Also need to compile , so much trouble ).
Recommended installation method :
install torch-sparse Specify the version and official source address , In this way, the package will be downloaded and installed from the official source at all times , What is officially provided is that it has been compiled in the corresponding environment whl Installation package , You can avoid the compilation process , Install faster , There will be no unnecessary mistakes .
Get the following installation instructions ( Notice that I am CUDA11.3 Pytorch1.10.0, If you're in another version , Please add the official source torch and cuda Change the version to its own ):
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.html
After installation and bread filling , Install again torch-geometric,torch-geometric Not in official sources , So direct pip install Just fine :
pip install torch-geometric
Be careful : If there are version requirements , You can specify the version when installing , This makes it easier to install successfully .
After the above installation is completed, you can successfully import the relevant packages .
Refer to : Official documents
边栏推荐
- 【笔记】《启示录》:产品经理的实践经验与反省清单
- 这种动态规划你见过吗——状态机动态规划之股票问题(下)
- SaltStack之return与job管理
- [深入研究4G/5G/6G专题-44]: URLLC-15-《3GPP URLLC相关协议、规范、技术原理深度解读》-9-低延时技术-3-非时隙调度Mini slot
- 顺序线性表——课上练
- Solve the critical path in FJSP - with Matlab source code
- [physical application] Wake induced dynamic simulation of underwater floating wind turbine wind field with matlab code
- Gmoea code operation 2 -- establishment and operation of operation environment
- Using Baidu easydl to realize chef hat recognition of bright kitchen and stove
- andorid系统layout、values、drawable适配
猜你喜欢

Powerbi time series analysis, prediction and visualization tutorial

From Bayesian filter to Kalman filter (2)

Application of time series database in museum environment detection

ES6's new data container map

在矩池云快速安装torch-sparse、torch-geometric等包

英语文章翻译-英语文章翻译软件-免费批量翻译

RTC clock: a calendar

JS modify table font and table border style

Smart contract security - overflow vulnerability

SaltStack配置管理
随机推荐
[filter tracking] target tracking based on EKF, TDOA and frequency difference positioning with matlab code
Pytorch:快速求得NxN矩阵的主对角线(diagonal)元素与非对角线元素
IMU heating
Random finite set RFs self-study notes (6): an example of calculation with the formula of prediction step and update step
Smart contract security - overflow vulnerability
Application of time series database in Hydropower Station
Qt: one signal binds multiple slots
[image hiding] digital image information hiding system based on DCT, DWT, LHA, LSB, including various attacks and performance parameters, with matlab code
Powerbi time series analysis, prediction and visualization tutorial
Rust 入门指南(crate 管理)
Libgdx learning road 02: draw game map with tiled
Swing事件处理的过程是怎样的?
JS preventDefault() 键盘输入限制 onmousewheel stopPropagation停止事件传播
【已解决】AC86U ML改版固件虚拟内存创建失败,提示USB磁盘读写速度不满足要求
英语文章翻译-英语文章翻译软件-免费批量翻译
Using CPLEX to solve small-scale energy-efficient FJSP
ACM warm-up exercise 3 in 2022 summer vacation (detailed)
RFs self study notes (4): actual measurement model - the mixture of OK and CK, and then calculate the likelihood probability
How many of the top ten test tools in 2022 do you master
Ardupilot software in the loop simulation and online debugging


