Search code examples
python-venvpython-3.11

Creating Virtual Environment with Python 3.11 Returns an Error


I got an error when creating virtualenv with Python 3.11 interpreter.

I typed this in my terminal

python3.11 -m venv env

It returned this:

Error: Command '['/home/bambang/env/bin/python3.11', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.

What's possibly missing?


Solution

  • I tried to add --without-pip flag. It doesn't return an error so far