You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a venv is created using e.g. python3 -m venv myvenv, it will create the link myvenv/bin/python3 -> /usr/bin/python3 instead of myvenv/bin/python3.10 -> /usr/bin/python3.10.
When a new python version is installed, /usr/bin/python3 will (likely) link to the new version and so will the venv. This is not the desired behavior.
Describe the solution you'd like
Make venv follow links when creating the venv. The links in the bin dir should point to a specific version, e.g. myvenv/bin/python3.10 -> /usr/bin/python3.10, no matter if python was called using /usr/bin/python , /usr/bin/python3 or /usr/bin/python3.10 .
This enables installing other python versions without breaking existing virtual environments.
An alternative is to make users aware of the way this works and that they should be specific when creating the venv.
The text was updated successfully, but these errors were encountered:
What's the problem this feature will solve?
When a venv is created using e.g.
python3 -m venv myvenv
, it will create the linkmyvenv/bin/python3 -> /usr/bin/python3
instead ofmyvenv/bin/python3.10 -> /usr/bin/python3.10
.When a new python version is installed,
/usr/bin/python3
will (likely) link to the new version and so will the venv. This is not the desired behavior.Describe the solution you'd like
Make
venv
follow links when creating the venv. The links in thebin
dir should point to a specific version, e.g.myvenv/bin/python3.10 -> /usr/bin/python3.10
, no matter if python was called using/usr/bin/python
,/usr/bin/python3
or/usr/bin/python3.10
.This enables installing other python versions without breaking existing virtual environments.
An alternative is to make users aware of the way this works and that they should be specific when creating the venv.
The text was updated successfully, but these errors were encountered: