Skip to content

[Bug] Windows: User Names with spaces cause uv/pip to fail on install #4904

@Ambyli

Description

@Ambyli

Upon running irm https://unsloth.ai/install.ps1 | iex an error occurs upon installing unsloth python packages when the user account on a windows device includes spaces. This is very common for microsoft accounts that create the user on the widnows device with the user's first and last name.

Example user: 'C:/Users/Dummy Profile/'

Error during install:
deps [====----------------] 2/9 unsloth extras uv failed, falling back to pip...
error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at C:\Users\Dummy:1:1

This occurs starting at install_python_stack.py:345 in .unsloth\studio\unsloth_studio\Lib\site-packages\studio

Additionally I noticed that req_args variable actually patches this issue using DUMMYP~1. The cmd can be fixed by replacing the incorrect name with the given string (or escaping whitespace).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions