How to install tensorflow gpu in wsl fo windows and why do it?
- User
How to install tensorflow gpu in wsl fo windows and why do it?
- Assistant
To install TensorFlow GPU in WSL (Windows Subsystem for Linux) for Windows, you need to follow these steps:
Pre-requisites:
- Ensure you have Windows 10 version 2004 or higher.
- Enable WSL and install a Linux distribution from the Microsoft Store (e.g., Ubuntu).
Steps:
-
Update and upgrade your Linux distribution:
sudo apt update sudo apt upgrade -
Install required dependencies:
sudo apt install python3-pip python3-dev python3-venv python3-wheel sudo apt install build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev sudo apt install libblas-dev liblapack-dev libatlas-base-dev gfortran