2

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.

2 Answers2

2

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
phd
  • 82,685
  • 13
  • 120
  • 165
0

Venv doesn't exists. I guess that you might want the package virtualenv.

Venv is commonly used as the name of virtual environment created by virtualenv.

So, the command is:

python3 -m pip install --user virtualenv
python3 -m virtualenv venv