Create /home/fam/venv first to install uv, avoiding externally-managed-environment error

This commit is contained in:
Fam Zheng 2025-11-23 18:33:11 +00:00
parent b116cafcc1
commit c685372845

View File

@ -85,6 +85,8 @@ ailab:
tags:
- ailab
before_script:
- python3 -m venv $HOME/venv
- source $HOME/venv/bin/activate
- pip install uv --index-url https://pypi.tuna.tsinghua.edu.cn/simple
- export PATH="$HOME/.local/bin:$PATH"
- uv venv --python /usr/bin/python3 venv