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
As the reader can see, Python venv’s created by python or python3 executable of a Python venv will not use the Python of this venv, and instead will use the system’s default Python (3.9 in my case).
CPython versions tested on:
3.11, 3.12
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered:
This happens because it likely copies/symlinks the interpreters from PATH, which points to the wrong versions as the venv is not active. We could prefer to copy them from the scripts path of the running interpreter, but I am wary of that as some people might be relying on the current behavior.
Bug report
Bug description:
Given the below
create-venv.py
script and several Python 3 installed in the classpath:Let’s create various venvs:
And now, let’s check them:
The above loop outputs:
As the reader can see, Python venv’s created by
python
orpython3
executable of a Python venv will not use the Python of this venv, and instead will use the system’s default Python (3.9 in my case).CPython versions tested on:
3.11, 3.12
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: