Skip to content
Discussion options

You must be logged in to vote

PLEASE NOTE: As of now, Copilot Agent Mode does not allow setting a preferred interpreter or runtime (e.g., uv, poetry, etc.).

Good solutions:

1. Alias python Globally (Quick and Dirty)

Edit your shell configuration (~/.bashrc, ~/.zshrc, or ~/.profile) and add:
alias python='uv run python'

Then reload your shell:
source ~/.bashrc # or the appropriate config file

⚠️ This method replaces python globally in your shell. Use it only in controlled environments (like project workspaces).

2. Use .envrc with direnv (Recommended Per-Project)

Install direnv if you haven’t already.

➤ Step 1: Enable direnv in your shell
echo 'eval "$(direnv hook bash)"' >> ~/.bashrc # or use zsh/fish
source ~/.bashrc

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Anselmoo
Comment options

Answer selected by Anselmoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Copilot Agent Mode Agent Mode is capable of iterating on its own code, recognizing errors, and fix
2 participants