Problem:
The bin directory of my virtual environment produced with virtualenvwrapper (which uses virtualenv under the hood) is located in the subfolderlocal instead which leads to breakage across the board (mostly virtualenvwrapper and vscode for now).
Basically, these tools expect the interpreter in <envname>/bin and not in <envname>/local/bin.
Infos:
I already did some research and found the following:
- There was a change in Ubuntu 22.04 that now uses
posix_localin modulesysconfiginstead ofposix_prefixas the default scheme which was explained here - Virtualenv at some point introduced a patch for Python 2 that changed the
binlocation tolocal/bininside a virtual environment in response to theposix_localprefix, which was asked in this question and resulted in this patch which was supposed to fix this bug
System:
- Ubuntu 22.04 LTS x86_64
- python3 - 3.10.4-0ubuntu2
- python3-virtualenv - 20.13.0+ds-2
- virtualenvwrapper==4.8.4
Question:
- How do I get
virtualenvto install my environment into<envname>/binagain, ignoringposix_localoption? - Is the reason why this was fixed still applicable for Python 3? (I must admit I did not really understand the reason why the patch was necessary in the first place.)