Repository navigation
Closed
Labels
Description
Trying to do a fresh install of Unsloth Studio today on my Win11 laptop with the script from the website. Read elsewhere that some versions of Python could be conflictual, so I unsinstalled them all, to let the script pull the one it wants.
PS C:\> irm https://unsloth.ai/install.ps1 | iex
🦥 Unsloth Studio Installer (Windows)
────────────────────────────────────────────────────
winget available
installing Python 3.13...
Found Python 3.13 [Python.Python.3.13] Version 3.13.14
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://www.python.org/ftp/python/3.13.14/python-3.13.14-amd64.exe
██████████████████████████████ 27.8 MB / 27.8 MB
Successfully verified installer hash
Starting package install...
Successfully installed
venv creating Python 3.13 virtual environment
C:\Users\xxxx\.unsloth\studio\unsloth_studio
gpu NVIDIA GPU detected
installing PyTorch (https://download.pytorch.org/whl/cu130)...
installing unsloth (this may take a few minutes)...
setup running unsloth studio setup...
Invoke-Expression: Program 'unsloth.exe' failed to run: An error occurred trying to start process 'C:\Users\xxxx\.unsloth\studio\unsloth_studio\Scripts\unsloth.exe' with working directory 'C:\'. Access is denied.At line:2472 char:9
+ & $UnslothExe @studioArgs
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
Trying to launch it manually from the folder in question, no luck:
PS C:\Users\xxxx\.unsloth\studio\unsloth_studio\Scripts> unsloth studio -H 0.0.0.0 -p 8888
unsloth: The term 'unsloth' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
[General Feedback]
The command "unsloth" was not found, but does exist in the current location.
PowerShell does not load commands from the current location by default (see 'Get-Help about_Command_Precedence').
If you trust this command, run the following command instead:
> .\unsloth
Following the "General feedback", not better:
PS C:\Users\xxxx\.unsloth\studio\unsloth_studio\Scripts> .\unsloth
ResourceUnavailable: Program 'unsloth.exe' failed to run: An error occurred trying to start process 'C:\Users\xxxx\.unsloth\studio\unsloth_studio\Scripts\unsloth.exe' with working directory 'C:\Users\xxxx\.unsloth\studio\unsloth_studio\Scripts'. Access is denied.At line:1 char:1
+ .\unsloth
+ ~~~~~~~~~.
Where do I go from here?
- Did you update?
pip install --upgrade unsloth unsloth_zoo- Fresh install ColaborKaggleor local / cloud - N/A- Number GPUs used, use
nvidia-smi- N/A - Which notebook? Please link! - N/A
- Which Unsloth version, TRL version, transformers version, PyTorch version? -N/A
- Which trainer?
SFTTrainer,GRPOTraineretc - N/A
Activity
oobabooga commentedon Jul 15, 2026
This isn't an installer bug. Everything builds fine, and it only fails when it runs
unsloth.exe, withAccess is denied. The manual.\unsloth.exerun gives the same error, so Windows itself is blocking that exe.That's usually antivirus/Defender or an AppLocker policy blocking executables under the user profile. To confirm, run the interpreter directly (skips the exe):
If that works, the block is on the exe specifically.
ArnaudContet commentedon Jul 16, 2026
Better, but still not all the way:
oobabooga commentedon Jul 16, 2026
That output confirms only
unsloth.exeis blocked. Python itself ran and loaded unsloth fine, so the block is on that one executable, which is why it's antivirus/Defender or an AppLocker policy rather than the install.To launch Studio now, use the exe's real entry point:
That runs the same thing
unsloth.exewould. To fix it properly, unblockunsloth.exeunder Windows Security > Protection history, or whatever policy is blocking executables in your user profile.ArnaudContet commentedon Jul 16, 2026
More errors, it looks like the installer just never completed correctly:
It's definitely Windows Defender blocking unsloth.
I did not think of this because I have a bunch of other softwares installed (by default or because they did not ask me) in my user profile. Some of their executables are stored in
C:\Users\xxxx\AppDataand run fine, but some others are blocked still even there.pipis blocked very consistently. Sometimespython3.14is blocked as well, but I've still been able to execute some scripts, not sure if it's due to changed policies since or some inconsistency.Defender is completely silent about the blocks too, so troubleshooting starts from no hint at all.
I'll have to speak to my IT admin how to unblock this.
Anyway, thanks for the help.
pip: declare the Studio dependencies the wheel's own modules import (#…
Studio: detect an interrupted dependency install instead of launching…