I just installed python3.7 on my 18.04LTS via the deadsnakes ppa:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.7 -y
Now I want to create a virtual environment with python3.7 -m venv env
but I get
Error: Command '['/path/to/desired/env/bin/python3.7', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
python3 -m venv env0
worked fine before.
Why does this happen?
What can I do to create a virtual environment for python3.7 on Ubuntu 18.04LTS?