In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces what is the environmental preparation of PyTorch in JupyterLab. The content is very detailed. Interested friends can use it for reference. I hope it will be helpful to you.
PyTorch is one of the mainstream deep learning frameworks, while JupyterLab is an interactive notebook environment based on Web. In JupyterLab, we can take notes and execute PyTorch code at the same time, so that we can learn, debug or review later.
Install Anaconda
Anaconda: https://www.anaconda.com/products/individual#Downloads
Beiwai Mirror Source: https://mirrors.bfsu.edu.cn/help/anaconda/
# activate base environment conda activate base to install JupyterLab
JupyterLab: https://jupyterlab.readthedocs.io/
It should have been installed with Anaconda, check the version as follows:
Jupyter-version
Otherwise, install as follows:
Conda install-c conda-forge jupyterlab
Perform jupyter lab startup, and the browser will open http://localhost:8888/:
Version < 3.0 recommends that you install the TOC extension:
Jupyter labextension install @ jupyterlab/toc
The effect of TOC directory is as follows:
Create a PyTorch environment
PyTorch: https://pytorch.org/
# create a virtual environment conda create-n pytorch python=3.8-yconda activate pytorch# install PyTorch with CUDA# NOTE: Python 3.9 users will need to add'- cymbals conda buy for 'for installationconda install pytorch==1.7.1 torchvision==0.8.2 cudatoolkit=10.2-c pytorch-y
Compatibility of torch, torchvision and python versions
Compatibility between CUDA Toolkit and Nvidia driver versions
Nvidia Driver recommended installation method in Ubuntu
Check the PyTorch version and GPU support as follows:
$python-
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.