SageMath unable to launch on Windows WSL

asked 2022-06-21 03:36:29 +0200

Pickle gravatar image

updated 2022-06-21 03:37:11 +0200

I just installed Sage using WSL and the Ubuntu distribution. When I try to run a notebook, I get the following error. Could someone help me resolve this?


sage -n jupyter


Start : This command cannot be run due to the error: The system cannot find the file specified.

At line:1 char:1

+ Start "file:///home/njjensen/.local/share/jupyter/runtime/nbserver-57 ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException

+ FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand

edit retag flag offensive close merge delete


Are you running the command sage -n jupyter in the Ubuntu installed via WSL?

Or in Window's PowerShell?

slelievre gravatar imageslelievre ( 2022-06-22 11:09:10 +0200 )edit

I resolved this. I was doing some wanky stuff with my installation. Now I have got it working. Thanks for your concern

Pickle gravatar imagePickle ( 2022-06-22 20:18:07 +0200 )edit

HI, I'm having the same problem...How can I resolve it?

vick2075 gravatar imagevick2075 ( 2022-07-05 13:21:06 +0200 )edit

@Pickle -- please post an answer explaining in detail how you solved your problem!

slelievre gravatar imageslelievre ( 2022-07-06 00:34:53 +0200 )edit