8
edits
Changes
Explain uv venv --python 3.11 flag and why it is important/why one might want to use it.
uv venv
</syntaxhighlight>
'''If you are on the clusters''', you instead may want to run
<syntaxhighlight lang="bash">
uv venv --python 3.11
</syntaxhighlight>
to ensure that the virtual environment uses Python 3.11. This is because by default, uv uses the system's version of Python (whatever the result of <code>which python</code> yields), and the clusters are running Python 3.10.12. (Python 3.11 will be useful because various projects, including the starter project, will require Python 3.11.)
To activate your virtual environment, run
<syntaxhighlight lang="bash">
source .venv/bin/activate
</syntaxhighlight>