[New-bugs-announce] [issue38583] The activate script in Windows is not correct for venvs created in git-bash
Mo
report at bugs.python.org
Thu Oct 24 10:32:03 EDT 2019
New submission from Mo <moabrahams at dashavoo.com>:
When creating a virtual environment on Windows from git-bash (using python -m venv), VIRTUAL_ENV in the activate script is set using a windows style path (C:\some\path) instead of the bash style (/c/some/path).
This means the system python and pip get used, despite the user thinking they are working in a venv after sourcing activate.
As activate is a bash script, the paths in it should always be in the bash style, regardless of platform.
This is described in a stack overflow issue here: https://stackoverflow.com/questions/57758841/windows-virtualenv-created-via-gitbash-using-system-python
I have confirmed the behaviour in 3.7.3, 3.7.4, 3.7.5 and 3.8.0.
----------
components: Windows
messages: 355333
nosy: Mo, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: The activate script in Windows is not correct for venvs created in git-bash
type: behavior
versions: Python 3.7, Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38583>
_______________________________________
More information about the New-bugs-announce
mailing list