Closed millerdev closed 3 months ago
Underlying cause is PEP 668 – Marking Python base environments as “externally managed”
Note this only happens when referencing system
version - doesn't reproduce using py version managed by pyenv:
$ pyenv virtualenv 3.9.7 my-env
Looking in links: /tmp/tmp7dv5m49y
Requirement already satisfied: setuptools in /home/laur89/.pyenv/versions/3.9.7/envs/my-env/lib/python3.9/site-packages (57.4.0)
Requirement already satisfied: pip in /home/laur89/.pyenv/versions/3.9.7/envs/my-env/lib/python3.9/site-packages (21.2.3)
pyenv-virtualenv is unable to create new virtualenvs using the "system" Python since upgrading to Ubuntu 23.04. Example output:
This worked on earlier versions of Ubuntu, presumably because they had Python 3.10 or earlier.
It is possible to work around the issue by creating the virtualenv manually, but it seems like
pyenv-virtualenv
should be able to do this automatically:System details: