dev-resources.site
for different kinds of informations.
Install PyTorch and JupyterLab on Ubuntu
Published at
1/12/2025
Categories
python
pytorch
jupyterlab
ubuntu
Author
hyperkai
Author
8 person written this
hyperkai
open
First, update and upgrade Ubuntu:
sudo apt update && sudo apt -y upgrade
Next, check the Python version:
python3 --version
# Python 3.12.3
Next, install python3.12-venv
:
*Memos:
- For example, if the Python version is
Python 3.13.x
, you need to installpython3.13-venv
. - By default,
python3.xx-venv
isn't installed on Ubuntu.
sudo apt install -y python3.12-venv
This is the current directory:
pwd
# /home/kai
Next, create a virtual environment:
python3 -m venv venv
Next, activate the virtual environment:
. venv/bin/activate
Next, install PyTorch with CUDA 11.8
. *There are other CUDA(Compute Unified Device Architecture) versons and a ROCm(Radeon Open Compute Platform) version and CPU version available from here:
pip install torch torchvision torchaudio
\ --index-url https://download.pytorch.org/whl/cu118
Next, install JupyterLab:
pip install jupyterlab
Next, open JupyterLab on Firefox:
jupyter lab
*You can open JupyterLab with specific directory on Firefox:
jupyter lab --notebook-dir /home/kai
pytorch Article's
30 articles in total
Face Recognition with Python and FaceNet
read article
RandomAffine in PyTorch
read article
CocoCaptions in PyTorch (2)
read article
CocoDetection in PyTorch (3)
read article
CocoDetection in PyTorch (2)
read article
square in PyTorch
read article
any in PyTorch
read article
atleast_2d in PyTorch
read article
atleast_1d in PyTorch
read article
atleast_3d in PyTorch
read article
fmod in PyTorch
read article
remainder in PyTorch
read article
sub in PyTorch
read article
mul in PyTorch
read article
linspace in PyTorch
read article
arange in PyTorch
read article
unsqueeze in PyTorch
read article
squeeze in PyTorch
read article
all in PyTorch
read article
ColorJitter in PyTorch
read article
ImageNet in PyTorch
read article
Asynchronous Python: What You Need to Know ๐๐๐
read article
Install PyTorch and JupyterLab on Ubuntu
currently reading
Datasets for Computer Vision (5)
read article
AI Pronunciation Trainer
read article
CocoCaptions in PyTorch (1)
read article
CocoCaptions in PyTorch (3)
read article
CocoDetection in PyTorch (1)
read article
pow in PyTorch
read article
Why PyTorch Stole the Spotlight from TensorFlow?
read article
Featured ones: