-
Notifications
You must be signed in to change notification settings - Fork 792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
global pip (--system
...) doesn't work in GitHub Codespaces
#3417
Comments
Hi! It looks you don't have the necessary permissions to write to the system packages? |
Probably works in pip because pip falls back to installing with |
Indeed, probably like that in GitHub Codespaces, you're right.
Is that an equivalent for sync?
|
No, we don't support |
So what would be the workaround to |
I think you basically need to use a virtualenv in that case with uv right now. I believe you can use virtual environments in devcontainers? Like it is possible, right? |
Running the {
"name": "Python 3 on Debian 12",
"image": "mcr.microsoft.com/devcontainers/python:1-3-bookworm",
"features": {
"ghcr.io/va-h/devcontainers-features/uv:1": {}
},
"remoteUser": "root"
} |
Yep, currently you need a venv to do that, and yep, it is definitely possible, but adds an unnecessary virtual environment bloat (since we're already in a containerized environment) |
I didn't find any issue about it containing "user" "-u" "--user", do you know if it has been deleted? |
GitHub Codespaces probably doesn't let you access to the devcontainer system (immutability) In the case of devcontainers, you probably indeed would want to use the |
Bug
global pip (
--system
...) doesn't work in GitHub CodespacesSystem
Version: 1.89.0
Commit: b58957e67ee1e712cebf466b995adf4c5307b2bd
Date: 2024-05-01T02:15:54.732Z
Browser: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Reproduce
.devcontainer/devconainer.json
:uv pip install prettytable --system
Note:
prettytable
is just an exempleLogs
Note:
prettytable
is just an exempleThe text was updated successfully, but these errors were encountered: