Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Option for venv to upgrade pip automatically?

46 views
Skip to first unread message

Marco Sulla

unread,
Dec 28, 2021, 2:54:36 PM12/28/21
to
I think it's very boring that, after creating a venv, you have
immediately to do every time:

pip install -U pip

Can't venv have an option for doing this automatically or, better, a
config file where you can put commands that will be launched every
time after you create a venv?

Inada Naoki

unread,
Dec 29, 2021, 1:10:52 AM12/29/21
to
You can use --upgrade-deps option. My alias is:

alias mkvenv='python3 -m venv --upgrade-deps --prompt . venv'
> --
> https://mail.python.org/mailman/listinfo/python-list



--
Inada Naoki <songof...@gmail.com>

Marco Sulla

unread,
Dec 29, 2021, 3:19:27 AM12/29/21
to
Cool, thanks!
0 new messages