For anyone looking for a workaround, thanks to andersk above. I edited
/usr/lib/python3.10/sysconfig.py per this diff:
usr/lib/python3.10$ diff -p sysconfig.py~ sysconfig.py
*** sysconfig.py~ 2022-02-26 03:21:15.000000000 -0500
--- sysconfig.py 2022-03-10 21:09:02.572726493 -0500
*************** def _get_preferred_schemes():
*** 262,268 ****
'user': 'osx_framework_user',
}
! if 'real_prefix' in sys.__dict__ or 'VIRTUAL_ENV' in os.environ:
# virtual environments
prefix_scheme = 'posix_prefix'
else:
--- 262,270 ----
'user': 'osx_framework_user',
}
! #
https://bugs.launchpad.net/ubuntu/+source/python3.10/+bug/1962791/comments/4
! if sys.base_prefix != sys.prefix:
! #if 'real_prefix' in sys.__dict__ or 'VIRTUAL_ENV' in os.environ:
# virtual environments
prefix_scheme = 'posix_prefix'
else:
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1962791
Title:
python3 -m venv installs pip to incorrect path VENV_ROOT/local/bin/pip
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.10/+bug/1962791/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs