I use the command line
python3 -m venv .venv
and a new .venv module is created but an error appears:
Error: Command '['/home/achu/Documentos/portfolio2023/.venv/bin/python3', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1
the bin directory doesn't contain the activate
file.
I've tried
$ apt install python3.12-dev python3.12-venv
sudo
unless it's for sysadmin tasks. Never set up a dev environment as root; don't work as root. A bad command can destroy your system. – Balenciaga