当前位置:网站首页>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.html
There 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.html
After the installation is complete, install torch-geometric, torch-geometric is not in the official source, so just pip install it directly:
pip install torch-geometric
Note: 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
边栏推荐
- MySQL fuzzy query can use INSTR instead of LIKE
- 简易网络文件拷贝的C实现
- The idea project obviously has dependencies, but the file is not displayed, Cannot resolve symbol 'XXX'
- sql statement - how to query data in another table based on the data in one table
- ERROR 1819 (HY000) Your password does not satisfy the current policy requirements
- 数字经济时代的开源数据库创新 | 2022开放原子全球开源峰会数据库分论坛圆满召开
- ERROR 2003 (HY000) Can't connect to MySQL server on 'localhost3306' (10061)Solution
- 行业落地呈现新进展 | 2022开放原子全球开源峰会OpenAtom OpenHarmony分论坛圆满召开
- MySQL optimization: from ten seconds to three hundred milliseconds
- 110道 MySQL面试题及答案 (持续更新)
猜你喜欢
Three oj questions on leetcode
MySQL数据库增删改查(基础操作命令详解)
Go language study notes - dealing with timeout problems - Context usage | Go language from scratch
1. 获取数据-requests.get()
Unity教程:URP渲染管线实战教程系列【1】
MySQL window function
Unity手机游戏性能优化系列:针对CPU端的性能调优
DVWA安装教程(懂你的不懂·详细)
Lua,ILRuntime, HybridCLR(wolong)/huatuo hot update comparative analysis
Centos7 install mysql5.7 steps (graphical version)
随机推荐
C Implementation of Simple Network File Copy
Unity框架设计系列:Unity 如何设计网络框架
WeChat applet uses cloud functions to update and add cloud database nested array elements
SQL row-column conversion
行业落地呈现新进展 | 2022开放原子全球开源峰会OpenAtom OpenHarmony分论坛圆满召开
产学研用 共建开源人才生态 | 2022开放原子全球开源峰会教育分论坛圆满召开
Fusion Cloud Native, Empowering New Milestones | 2022 Open Atom Global Open Source Summit Cloud Native Sub-Forum Successfully Held
Multiple table query of sql statement
.NET-6.WinForm2.NanUI学习和总结
SOLVED: After accidentally uninstalling pip (two ways to manually install pip)
MySQL数据库备份
PWN ROP
MySQL database must add, delete, search and modify operations (CRUD)
MySQL database addition, deletion, modification and query (detailed explanation of basic operation commands)
The 15th day of the special assault version of the sword offer
Musk talks to the "virtual version" of Musk, how far is the brain-computer interaction technology from us
SQL行列转换
MySQL开窗函数
unity2d小游戏
Mysql应用安装后找不到my.ini文件