Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

some upgrade later pip works but using pip python-casa gives
error: externally-managed-environment
needs: --break-system-packages.

You must be logged in to vote

Replies: 1 comment · 2 replies

Comment options

Since some time, pip protects your global python environment so you get that error. Instead of breaking your system-wide installation, you want to use a virtual environment.

If you want to just use the cli tool, I'd recommend using pipx (install instructions): pipx install python-kasa or uv (install instructions): uv tool install python-kasa. Both will install the tool into a managed virtualenv and should just work.

You must be logged in to vote
2 replies
@effizientest
Comment options

Many tanks - what is the syntax for installing uv on WSL2?

@sdb9696
Comment options

From the uv docs: curl -LsSf https://astral.sh/uv/install.sh | sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.