Skip to content

Commit 6058580

Browse files
authored
CI Use venv rather than virtualenv (scikit-learn#31812)
1 parent 5464d9a commit 6058580

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

build_tools/azure/install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ pre_python_environment_install() {
3434
if [[ "$DISTRIB" == "ubuntu" ]]; then
3535
sudo apt-get update
3636
sudo apt-get install python3-scipy python3-matplotlib \
37-
libatlas3-base libatlas-base-dev python3-virtualenv ccache
37+
libatlas3-base libatlas-base-dev python3-venv ccache
3838

3939
elif [[ "$DISTRIB" == "debian-32" ]]; then
4040
apt-get update
4141
apt-get install -y python3-dev python3-numpy python3-scipy \
4242
python3-matplotlib libopenblas-dev \
43-
python3-virtualenv python3-pandas ccache git
43+
python3-venv python3-pandas ccache git
4444
fi
4545
}
4646

@@ -60,7 +60,7 @@ python_environment_install_and_activate() {
6060
activate_environment
6161

6262
elif [[ "$DISTRIB" == "ubuntu" || "$DISTRIB" == "debian-32" ]]; then
63-
python3 -m virtualenv --system-site-packages --python=python3 $VIRTUALENV
63+
python3 -m venv --system-site-packages $VIRTUALENV
6464
activate_environment
6565
pip install -r "${LOCK_FILE}"
6666

0 commit comments

Comments
 (0)