While installing a virtual environment by running the following command on terminal:
python3 -m pip install --user venv
I'm encountering the following error:
ERROR: Could not find a version that satisfies the requirement venv
ERROR: No matching distribution found for venv
Please help me with this! I believe since default python is version 2.x in macOS I must try installing virtualenv but I require venv.
You cannot install venv
with pip
: venv
is a module from the standard library since Python 3.3. So you don't need to install it, just start using:
python3 -m venv path/to/new-venv