# Create a conda environment for PyTorch with GPU support > An Efficient Step-by-Step Guide to Setting Up PyTorch with GPU Support **Published by:** [Perception](https://paragraph.com/@perception/) **Published on:** 2024-12-17 **URL:** https://paragraph.com/@perception/create-a-conda-environment-for-pytorch-with-gpu-support ## Content Step 1: Install Nvidia-driver. Check Nvidia drivers from the link provided as follows: https://www.nvidia.com/en-us/drivers/sudo apt install nvidia-driver-566Step 2: Create a conda environment and name it. For example, a torch environment with the name "torch" can be created as:conda create --name torch python=3.11Step 3: Activate the newly created conda environment.Step 4: Install cudatoolkit and pytorch. Check compatible versions in the link below: https://pytorch.org/get-started/locally/conda install pytorch torchvision torchaudio cudatoolkit=11.7 -c pytorch -c nvidiaBy following these steps, you'll set up a conda environment for PyTorch with the necessary GPU support in no time, enabling efficient deep learning workflows.Result ## Publication Information - [Perception](https://paragraph.com/@perception/): Publication homepage - [All Posts](https://paragraph.com/@perception/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@perception): Subscribe to updates ## Optional - [Collect as NFT](https://paragraph.com/@perception/create-a-conda-environment-for-pytorch-with-gpu-support): Support the author by collecting this post - [View Collectors](https://paragraph.com/@perception/create-a-conda-environment-for-pytorch-with-gpu-support/collectors): See who has collected this post