In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is a detailed introduction to "how to install pytorch in Linux". The content is detailed, the steps are clear, and the details are properly handled. I hope this article "how to install pytorch in Linux" can help you solve your doubts. The following is a detailed introduction to "how to install pytorch in Linux". Let's learn new knowledge together.
PyTorch is an open source Python machine learning library based on Torch for applications such as natural language processing.
Linux installation pytorch specific steps: 1. Install Anaconda
Download URL: www.anaconda.com/download/#linux
Download, decompress, and write on the command line
sh Anaconda3-5.1.0-Linux-x86_64.sh Then the installer is similar to the normal installer. After installation, run the following command
conda list If conda not found command appears, it means that your path is not set, you need to manually add the path yourself, the specific approach is to run the command line now.
vi ~/.bashrc Then press i to enter insert mode and add the following command at the end, 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 lists all your installed packages, which are all packages in your active environment.
2. install PyTorch
Go to http://pytorch.org/
After selecting the option, type Run this command as shown
If not, run directly.
conda install pytorch will automatically install the latest version, check whether it is installed after installation. input
python import torch Read here, this article "How to install pytorch Linux" article has been introduced, want to master the knowledge of this article also need to practice to understand, if you want to know more about the content of the article, welcome to pay attention to 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.