This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mo
Recipients Mo, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-10-24.14:32:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1571927523.33.0.935819222823.issue38583@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-10-24 14:32:03Mosetrecipients: + Mo, paul.moore, tim.golden, zach.ware, steve.dower
2019-10-24 14:32:03Mosetmessageid: <1571927523.33.0.935819222823.issue38583@roundup.psfhosted.org>
2019-10-24 14:32:03Molinkissue38583 messages
2019-10-24 14:32:02Mocreate