# \#wsl2

**URL:** https://discuss.ai.google.dev/tag/wsl2/277.md

[Latest](https://discuss.ai.google.dev/latest.md) · [Categories](https://discuss.ai.google.dev/categories.md) · [Tags](https://discuss.ai.google.dev/tags.md)

---

## [\[Bug / Question\] WSL UNC paths fail with %5C encoding error in Antigravity 2.3.1 — Any workaround?](https://discuss.ai.google.dev/t/bug-question-wsl-unc-paths-fail-with-5c-encoding-error-in-antigravity-2-3-1-any-workaround/175960)

<div class="topic-metadata">

**Author:** [@imalexgo](https://discuss.ai.google.dev/u/imalexgo)\
**Replies:** 2\
**Last updated:** [September 23, 2026, 8:29pm UTC](https://discuss.ai.google.dev/t/bug-question-wsl-unc-paths-fail-with-5c-encoding-error-in-antigravity-2-3-1-any-workaround/175960 "2026-09-23T20:29:59Z")

</div>

Issue: Opening project folders directly via standard WSL UNC paths (e.g., \\\\wsl.localhost\\Ubuntu-26.04\\home\\...) fails with a Missing Folder error. Antigravity URL-encodes the backslashes \\ into %5C (resulting in %5C%5C…

---

## [BUG : Remote WSL fails to connect (WebSocket 1006) although server starts successfully](https://discuss.ai.google.dev/t/bug-remote-wsl-fails-to-connect-websocket-1006-although-server-starts-successfully/177382)

<div class="topic-metadata">

**Author:** [@xckyze404](https://discuss.ai.google.dev/u/xckyze404)\
**Replies:** 1\
**Last updated:** [September 16, 2026, 11:08am UTC](https://discuss.ai.google.dev/t/bug-remote-wsl-fails-to-connect-websocket-1006-although-server-starts-successfully/177382 "2026-09-16T11:08:57Z")

</div>

Environment Antigravity IDE: 2.1.1 VSCode OSS: 1.107.0 OS: Windows 11 (Build 26200) WSL: Ubuntu 24.04 (WSL2) Expected behavior Connecting to WSL should open the remote workspace successfully. Actual behavior Antigra…

---

## [\[Bug\] Antigravity CLI (agy) fails to persist authentication state in WSL 2 environment](https://discuss.ai.google.dev/t/bug-antigravity-cli-agy-fails-to-persist-authentication-state-in-wsl-2-environment/146059)

<div class="topic-metadata">

**Author:** [@Criss\_Anger](https://discuss.ai.google.dev/u/Criss_Anger)\
**Replies:** 6\
**Last updated:** [July 9, 2026, 6:50am UTC](https://discuss.ai.google.dev/t/bug-antigravity-cli-agy-fails-to-persist-authentication-state-in-wsl-2-environment/146059 "2026-07-09T06:50:18Z")

</div>

Description When using the Antigravity CLI (agy) inside a WSL 2 (Windows Subsystem for Linux 2) instance, the authentication session fails to persist. Every single execution of the agy command triggers a fresh authentica…

---

## [WSL \[remote\] random disconnects](https://discuss.ai.google.dev/t/wsl-remote-random-disconnects/127576)

<div class="topic-metadata">

**Author:** [@AICodeVibes](https://discuss.ai.google.dev/u/AICodeVibes)\
**Replies:** 1\
**Last updated:** [April 4, 2026, 9:57am UTC](https://discuss.ai.google.dev/t/wsl-remote-random-disconnects/127576 "2026-04-04T09:57:09Z")

</div>

After a few clean reinstalls, i am able to get WSL remote connectivity somewhat stable. The editor view is completely fine, but the agent manager every once in a while goes sideways. jetski seems to get socket resets /…

---

## [WSL-UNC-CANONICALIZATION: Opening WSL repo via \\\\wsl.localhost breaks editor + agent (file not found, analyzes \\\\, asks for /)](https://discuss.ai.google.dev/t/wsl-unc-canonicalization-opening-wsl-repo-via-wsl-localhost-breaks-editor-agent-file-not-found-analyzes-asks-for/136045)

<div class="topic-metadata">

**Author:** [@Ken\_Lyle](https://discuss.ai.google.dev/u/Ken_Lyle)\
**Replies:** 0\
**Last updated:** [March 25, 2026, 9:19pm UTC](https://discuss.ai.google.dev/t/wsl-unc-canonicalization-opening-wsl-repo-via-wsl-localhost-breaks-editor-agent-file-not-found-analyzes-asks-for/136045 "2026-03-25T21:19:38Z")

</div>

This is a high-severity workflow breaker because it makes the editor unable to open files in a WSL workspace unless the user discovers the Connect/Open-in-WSL workaround. Antigravity 1.20.6 Commit 135ccf460c67c4b90…

---

## [Antigravity Agent (WSL) launches Windows-Host Chrome but fails to establish CDP connection](https://discuss.ai.google.dev/t/antigravity-agent-wsl-launches-windows-host-chrome-but-fails-to-establish-cdp-connection/119008)

<div class="topic-metadata">

**Author:** [@Lior\_Parente](https://discuss.ai.google.dev/u/Lior_Parente)\
**Replies:** 3\
**Last updated:** [March 21, 2026, 4:50pm UTC](https://discuss.ai.google.dev/t/antigravity-agent-wsl-launches-windows-host-chrome-but-fails-to-establish-cdp-connection/119008 "2026-03-21T16:50:57Z")

</div>

Hi Team, I am reporting a blocking issue with the Browser Agent running in a WSL2 environment. Diagnosis: Setup: Antigravity IDE running in WSL2 (Ubuntu). Action: Agent launches the browser. Observation: The b…

---

## [How to fix Antigravity server crash on Windows 10 WSL?](https://discuss.ai.google.dev/t/how-to-fix-antigravity-server-crash-on-windows-10-wsl/134133)

<div class="topic-metadata">

**Author:** [@EmilHnm](https://discuss.ai.google.dev/u/EmilHnm)\
**Replies:** 0\
**Last updated:** [March 18, 2026, 2:34pm UTC](https://discuss.ai.google.dev/t/how-to-fix-antigravity-server-crash-on-windows-10-wsl/134133 "2026-03-18T14:34:11Z")

</div>

I am currently encountering the error: “Antigravity server crashed unexpectedly. Please restart to fully restore AI features.” when working with WSL on Windows 10. Whenever I start WSL together with Antigravity, the er…

---

## [WSL Issue 1.18.3 - Commands Don't Work](https://discuss.ai.google.dev/t/wsl-issue-1-18-3-commands-dont-work/124692)

<div class="topic-metadata">

**Author:** [@JohnBCoding](https://discuss.ai.google.dev/u/JohnBCoding)\
**Replies:** 2\
**Last updated:** [February 23, 2026, 6:29am UTC](https://discuss.ai.google.dev/t/wsl-issue-1-18-3-commands-dont-work/124692 "2026-02-23T06:29:04Z")

</div>

Anyone have this issue occurring on the newest version? Any command it tries to run it tries to append sandbox commands that seem to be MacOS only which fails in WSL. If I downgrade to the previous version its works perf…

---

## [Critical Issue: WSL Connection Failure (Error 1006) and "agentSessions" Service Dependency Error](https://discuss.ai.google.dev/t/critical-issue-wsl-connection-failure-error-1006-and-agentsessions-service-dependency-error/123659)

<div class="topic-metadata">

**Author:** [@Lorenzo\_Angelino](https://discuss.ai.google.dev/u/Lorenzo_Angelino)\
**Replies:** 0\
**Last updated:** [February 18, 2026, 4:09am UTC](https://discuss.ai.google.dev/t/critical-issue-wsl-connection-failure-error-1006-and-agentsessions-service-dependency-error/123659 "2026-02-18T04:09:20Z")

</div>

Hi everyone, I am experiencing a cascading failure in Antigravity that prevents me from using the editor with WSL. It appears to be a combination of internal service registration failures and connection timeouts. The m…

---

## [Tensor dimension issues in conda local env. Follow up "Image captioning with visual attention" tutorial](https://discuss.ai.google.dev/t/tensor-dimension-issues-in-conda-local-env-follow-up-image-captioning-with-visual-attention-tutorial/37411)

<div class="topic-metadata">

**Author:** [@Max\_Zaikin](https://discuss.ai.google.dev/u/Max_Zaikin)\
**Replies:** 1\
**Last updated:** [October 8, 2024, 7:53am UTC](https://discuss.ai.google.dev/t/tensor-dimension-issues-in-conda-local-env-follow-up-image-captioning-with-visual-attention-tutorial/37411 "2024-10-08T07:53:17Z")

</div>

There is a tutorial Image captioning with visual attention which I would like to follow on my local computer. I have a GPU and WSL2 envirenoment which has been setup in accordance with Ultimate Guide: Install TensorFlow …

---

## [TF-TRT Warning: Could not find TensorRT](https://discuss.ai.google.dev/t/tf-trt-warning-could-not-find-tensorrt/30764)

<div class="topic-metadata">

**Author:** [@Mohan\_Krishna\_G\_R](https://discuss.ai.google.dev/u/Mohan_Krishna_G_R)\
**Replies:** 5\
**Last updated:** [June 18, 2024, 4:22am UTC](https://discuss.ai.google.dev/t/tf-trt-warning-could-not-find-tensorrt/30764 "2024-06-18T04:22:48Z")

</div>

Couldn’t resolve TF-TRT Warning: Could not find TensorRT I’m using wsl2 in windows 11. Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy Previously, I wasn’t able to…

---

## [Tensorflow installation issue in WSL2](https://discuss.ai.google.dev/t/tensorflow-installation-issue-in-wsl2/20712)

<div class="topic-metadata">

**Author:** [@Abhijit\_Mustafi](https://discuss.ai.google.dev/u/Abhijit_Mustafi)\
**Replies:** 1\
**Last updated:** [June 9, 2024, 6:48pm UTC](https://discuss.ai.google.dev/t/tensorflow-installation-issue-in-wsl2/20712 "2024-06-09T18:48:36Z")

</div>

I have been trying to install Tensorflow 2.16.1 with GPU support on a WSL in Windows 11. My Linux installation is Ubuntu. I have been following the instructions here. The process requires me to install cudnn 8.6.0 which …

---

## [CNN network causes kernel die](https://discuss.ai.google.dev/t/cnn-network-causes-kernel-die/20817)

<div class="topic-metadata">

**Author:** [@Umut\_Koksoy](https://discuss.ai.google.dev/u/Umut_Koksoy)\
**Replies:** 20\
**Last updated:** [June 6, 2024, 5:43am UTC](https://discuss.ai.google.dev/t/cnn-network-causes-kernel-die/20817 "2024-06-06T05:43:34Z")

</div>

I have windows 11 installed and using tensorflow 2.12 on wsl. CUDA Version: 11.8 is installed I can train deep neural networks successfully with my GPU. However, when I try to use CNN network, system crashes. As an exa…

---

## [TensorFlow Cuda in Docker under WSL2 not wokring](https://discuss.ai.google.dev/t/tensorflow-cuda-in-docker-under-wsl2-not-wokring/28344)

<div class="topic-metadata">

**Author:** [@Nikolay\_Demirev](https://discuss.ai.google.dev/u/Nikolay_Demirev)\
**Replies:** 2\
**Last updated:** [May 28, 2024, 3:18pm UTC](https://discuss.ai.google.dev/t/tensorflow-cuda-in-docker-under-wsl2-not-wokring/28344 "2024-05-28T15:18:18Z")

</div>

Hello everyone, I am writing here after days of reading on the internet searching for a way to get TensorFlow working inside a Docker container on WSL2. I installed the latest NVIDIA driver on Windows 11 and configured…

---

## [Need help for understanding messages from importing tensorflow in WSL](https://discuss.ai.google.dev/t/need-help-for-understanding-messages-from-importing-tensorflow-in-wsl/32695)

<div class="topic-metadata">

**Author:** [@kdlin1](https://discuss.ai.google.dev/u/kdlin1)\
**Replies:** 8\
**Last updated:** [May 15, 2024, 2:19pm UTC](https://discuss.ai.google.dev/t/need-help-for-understanding-messages-from-importing-tensorflow-in-wsl/32695 "2024-05-15T14:19:43Z")

</div>

Hi, can someone please explain to me what the following messages mean and what I need to do? I run tensorflow v2.15 on WSL. When I do “import tensorflow as tf”, I receive the following messages: 2024-03-07 23:19:05.4688…

---

## [Can't get Tensorflow GPU to work on WSL 2](https://discuss.ai.google.dev/t/cant-get-tensorflow-gpu-to-work-on-wsl-2/28889)

<div class="topic-metadata">

**Author:** [@SergioGMN](https://discuss.ai.google.dev/u/SergioGMN)\
**Replies:** 1\
**Last updated:** [April 26, 2024, 11:45am UTC](https://discuss.ai.google.dev/t/cant-get-tensorflow-gpu-to-work-on-wsl-2/28889 "2024-04-26T11:45:51Z")

</div>

Hello. I have installed the latest drivers, Cuda and Cudnn in the host machine and both Cuda and Cudnn inside the WSL. If I use nvidia-smi I do see the GPU information, both outside and inside WSL: sergio@DESKTOP-U0MA…

---

## [TF installation, WSL2, and Visual Studio Code](https://discuss.ai.google.dev/t/tf-installation-wsl2-and-visual-studio-code/29800)

<div class="topic-metadata">

**Author:** [@kdlin1](https://discuss.ai.google.dev/u/kdlin1)\
**Replies:** 4\
**Last updated:** [April 8, 2024, 5:42am UTC](https://discuss.ai.google.dev/t/tf-installation-wsl2-and-visual-studio-code/29800 "2024-04-08T05:42:23Z")

</div>

I followed the instructions on tensorflow.org to install tensorflow on WSL2. It seems to work. This is by running the GPU verification code on the website. However, when I run the same code in Visual Studio Code. It coul…

---

## [WSL2 Installation Failing Miserably](https://discuss.ai.google.dev/t/wsl2-installation-failing-miserably/17192)

<div class="topic-metadata">

**Author:** [@Joshua\_Mannheimer](https://discuss.ai.google.dev/u/Joshua_Mannheimer)\
**Replies:** 10\
**Last updated:** [March 26, 2024, 2:49am UTC](https://discuss.ai.google.dev/t/wsl2-installation-failing-miserably/17192 "2024-03-26T02:49:33Z")

</div>

I am trying to install Tensorflow using WSL2 on windows as outlined on the TF website Install TensorFlow with pip. I get to the point where I am getting confirmation the GPU is registering but I am getting quite a bit o…

---

## [Failing to get tensorflow to recognize gpu, Cuda and Cudnn installed](https://discuss.ai.google.dev/t/failing-to-get-tensorflow-to-recognize-gpu-cuda-and-cudnn-installed/23621)

<div class="topic-metadata">

**Author:** [@Alexander\_Bowler](https://discuss.ai.google.dev/u/Alexander_Bowler)\
**Replies:** 1\
**Last updated:** [March 25, 2024, 10:20am UTC](https://discuss.ai.google.dev/t/failing-to-get-tensorflow-to-recognize-gpu-cuda-and-cudnn-installed/23621 "2024-03-25T10:20:51Z")

</div>

I am struggling to get tensorflow to work with my gpu, I am running wsl2 and have tried various versions including downloading cuda toolkit and cudnn and adding to bashrc as well as installing conda and downloading those…

---

## [Tensorflow is not a package: Installing tensorflow on native windows](https://discuss.ai.google.dev/t/tensorflow-is-not-a-package-installing-tensorflow-on-native-windows/32342)

<div class="topic-metadata">

**Author:** [@Drake\_Jest](https://discuss.ai.google.dev/u/Drake_Jest)\
**Replies:** 1\
**Last updated:** [February 19, 2024, 5:51am UTC](https://discuss.ai.google.dev/t/tensorflow-is-not-a-package-installing-tensorflow-on-native-windows/32342 "2024-02-19T05:51:18Z")

</div>

Hello , I originally made my python sensorflow program in WSL (Ubunutu) everything works great there. But i will soon need to run the program on a windows machine (inference portion of the code). But i am running into pr…

---

## [TensorFlow lite micro with WSL](https://discuss.ai.google.dev/t/tensorflow-lite-micro-with-wsl/31068)

<div class="topic-metadata">

**Author:** [@Javier\_Alonso-Valdes](https://discuss.ai.google.dev/u/Javier_Alonso-Valdes)\
**Replies:** 1\
**Last updated:** [January 27, 2024, 12:27pm UTC](https://discuss.ai.google.dev/t/tensorflow-lite-micro-with-wsl/31068 "2024-01-27T12:27:28Z")

</div>

hi, I have WSL in my windows OS and already clone the repo from tflite-micro. I have everything in the Ubuntu distribution and installed dependencies asked (numpy and Pillow). However, whenever in tflite-micro, calling …

---

## [Does anyone actually know how to get Tensorflow to detect GPU?](https://discuss.ai.google.dev/t/does-anyone-actually-know-how-to-get-tensorflow-to-detect-gpu/30629)

<div class="topic-metadata">

**Author:** [@tbananas](https://discuss.ai.google.dev/u/tbananas)\
**Replies:** 5\
**Last updated:** [January 25, 2024, 6:24pm UTC](https://discuss.ai.google.dev/t/does-anyone-actually-know-how-to-get-tensorflow-to-detect-gpu/30629 "2024-01-25T18:24:27Z")

</div>

For the past few days I’ve been scouring the internet for a helpful tutorial that isn’t \>1 year old that uses WSL2 to help tensorflow access the GPU. I’ve followed the instructions here but have had no luck. I run on Win…

---

## [TF 2.13 not seeing GPU with CUDA 12.3](https://discuss.ai.google.dev/t/tf-2-13-not-seeing-gpu-with-cuda-12-3/31495)

<div class="topic-metadata">

**Author:** [@Kurt\_Ger](https://discuss.ai.google.dev/u/Kurt_Ger)\
**Replies:** 6\
**Last updated:** [January 5, 2024, 10:47pm UTC](https://discuss.ai.google.dev/t/tf-2-13-not-seeing-gpu-with-cuda-12-3/31495 "2024-01-05T22:47:06Z")

</div>

I’ve been trying to get TF to see my GPU on Windows 10, with WSL2 installed. It looks like I’ve done everything on the installation documentation, but I still can’t get my GPU detected. I’m using Anaconda, and TF is in …

---

## [TENSORFLOW 2.15.OPOST1 BREAKS KERAS \[ maybe bug\]](https://discuss.ai.google.dev/t/tensorflow-2-15-opost1-breaks-keras-maybe-bug/32103)

<div class="topic-metadata">

**Author:** [@Alfred\_Aita](https://discuss.ai.google.dev/u/Alfred_Aita)\
**Replies:** 3\
**Last updated:** [December 8, 2023, 4:13pm UTC](https://discuss.ai.google.dev/t/tensorflow-2-15-opost1-breaks-keras-maybe-bug/32103 "2023-12-08T16:13:58Z")

</div>

I’ve installed Tensorflow\[and cuda\] 2.15.0 post1 which was released today . using wsl and a separate environment. While I have access to my GPU through Tensorflow I can not access Keras. lt crashes the system. Don’t know…

---

## [Installing Keras through a VSCode WSL instead od a Windows OS](https://discuss.ai.google.dev/t/installing-keras-through-a-vscode-wsl-instead-od-a-windows-os/28253)

<div class="topic-metadata">

**Author:** [@Shaylin\_Velen](https://discuss.ai.google.dev/u/Shaylin_Velen)\
**Replies:** 1\
**Last updated:** [November 29, 2023, 3:48pm UTC](https://discuss.ai.google.dev/t/installing-keras-through-a-vscode-wsl-instead-od-a-windows-os/28253 "2023-11-29T15:48:15Z")

</div>

Hi, Could anyone please advise on what the best option for one would be if they have a Windows machine but would like to install keras. I currently have a WSL system setup on VScode would this be okay?

---

## [Tensorflow GPU not working in WSL2 on Windows 11](https://discuss.ai.google.dev/t/tensorflow-gpu-not-working-in-wsl2-on-windows-11/19598)

<div class="topic-metadata">

**Author:** [@ns78](https://discuss.ai.google.dev/u/ns78)\
**Replies:** 2\
**Last updated:** [October 26, 2023, 7:08am UTC](https://discuss.ai.google.dev/t/tensorflow-gpu-not-working-in-wsl2-on-windows-11/19598 "2023-10-26T07:08:06Z")

</div>

I followed the instructions for installing Tensorflow-Cuda on TensorFlow را با پیپ نصب کنید and get the following error when running the GPU test: 2023-10-23 14:54:25.841187: I tensorflow/core/util/port.cc:110\] oneDNN c…

---

## [Install Tensorflow in wsl2 Ubuntu virtual system GPU compatible](https://discuss.ai.google.dev/t/install-tensorflow-in-wsl2-ubuntu-virtual-system-gpu-compatible/30911)

<div class="topic-metadata">

**Author:** [@Vaggelis\_Di](https://discuss.ai.google.dev/u/Vaggelis_Di)\
**Replies:** 2\
**Last updated:** [October 6, 2023, 9:41am UTC](https://discuss.ai.google.dev/t/install-tensorflow-in-wsl2-ubuntu-virtual-system-gpu-compatible/30911 "2023-10-06T09:41:42Z")

</div>

Dear all I have troubles making Tensorflow to rexognise the GPU installed i my machine. . I have followed instalation guidelines for Windows WSL2 . I have followed the instructions in the above link but I still I can…

---

## [Wsl2 tf2.11 keras optimizer fail](https://discuss.ai.google.dev/t/wsl2-tf2-11-keras-optimizer-fail/19993)

<div class="topic-metadata">

**Author:** [@Steven\_Cohen](https://discuss.ai.google.dev/u/Steven_Cohen)\
**Replies:** 7\
**Last updated:** [July 6, 2023, 9:46am UTC](https://discuss.ai.google.dev/t/wsl2-tf2-11-keras-optimizer-fail/19993 "2023-07-06T09:46:44Z")

</div>

for wsl2 tf==2.11, optimizer=tf.keras.optimizers.legacy.Adam() works but NOT optimizer=“adam” NOR optimizer=tf.keras.optimizers.Adam() is there a new way to call the new optimizers or does the paths to CUDA in the ne…

---

## [What is the purpose of building Tensorflow on WSL2?](https://discuss.ai.google.dev/t/what-is-the-purpose-of-building-tensorflow-on-wsl2/30752)

<div class="topic-metadata">

**Author:** [@Warmonger](https://discuss.ai.google.dev/u/Warmonger)\
**Replies:** 1\
**Last updated:** [May 29, 2023, 12:39pm UTC](https://discuss.ai.google.dev/t/what-is-the-purpose-of-building-tensorflow-on-wsl2/30752 "2023-05-29T12:39:49Z")

</div>

Hello guys, new user here. Using Tensorflow on Windows with CUDA became much more complicated after it dropped native support for Windows. Before I head dive into it, let me understand the situation: If I want to use …

---

## [Jupyter kernel keeps on restarting](https://discuss.ai.google.dev/t/jupyter-kernel-keeps-on-restarting/31369)

<div class="topic-metadata">

**Author:** [@2A0\_Saikiran](https://discuss.ai.google.dev/u/2A0_Saikiran)\
**Replies:** 1\
**Last updated:** [May 26, 2023, 2:10pm UTC](https://discuss.ai.google.dev/t/jupyter-kernel-keeps-on-restarting/31369 "2023-05-26T14:10:46Z")

</div>

Hello, I’m a noob and I’m working on deep learning projects. To train them I wanted to run TensorFlow on gpu. So ,enabled wsl2 and installed ubuntu ,then followed steps is TensorFlow official website to in install it .w…

[Next page](https://discuss.ai.google.dev/tag/wsl2/277.md?match_all_tags=true&page=1&tags%5B%5D=wsl2)
