In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to install PyTorch in Linux system, which is very detailed and has certain reference value. Friends who are interested must finish it!
About pytorch: Pytorch is the python version of torch, is an open source neural network framework by Facebook, specifically for GPU accelerated deep neural network (DNN) programming.
Torch is a classic tensor library for manipulating multi-dimensional matrix data, which is widely used in machine learning and other mathematics-intensive applications. Different from the static calculation diagram of Tensorflow, the calculation diagram of pytorch is dynamic and can be changed in real time according to the needs of calculation.
However, due to the use of Lua in the Torch language, it has been a small minority in China, and users have been gradually taken away by Tensorflow, which supports Python.
As the port of classical machine learning library Torch, PyTorch provides a comfortable choice for Python language users to write code.
Linux system installation pytorch detailed steps: 1. Install Anaconda
Download URL: https://www.anaconda.com/download/#linux
Extract it after download, and then write it on the command line
Sh Anaconda3-5.1.0-Linux-x86_64.sh then installs the program much like a normal installer, and runs the following command after installation
Conda list if conda cannot find the command, it means that your path is not set correctly, and you need to add the path manually. The specific method is to run it on the command line now.
Vi ~ / .bashrc then press I to enter insert mode, add the following command at the end, and replace username with your own account name
Export PATH= "/ home/username/anaconda3/bin:$PATH" then esc launches insert mode, enter: wq save and exit, try again
Conda list will list all the packages you have installed. These are all packages in your current active environment.
two。 Install PyTorch
Enter the website http://pytorch.org/
After you have selected the options, enter the commands displayed by Run this command
If it is not shown, run it directly
Conda install pytorch automatically installs the latest version and checks to see if it is installed after installation. Input
Python import torch above is all the content of this article "how to install PyTorch on Linux system". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.