In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
In this article, the editor introduces in detail "how to install PyTorch in the Linux system", the content is detailed, the steps are clear, and the details are handled properly. I hope that this article "how to install PyTorch in the Linux system" can help you solve your doubts.
PyTorch, formerly Torch, has the same underlying layer as the Torch framework, but has been rewritten a lot with Python. It is not only more flexible and supports dynamic diagrams, but also provides a Python interface.
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
If python import torch does not report an error, it means that the installation is successful.
Read here, this "how to install PyTorch in the Linux system" article has been introduced, want to master the knowledge of this article also need to practice and use in order to understand, if you want to know more about the article, 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.