Forrest logo
back to the pyenv tool

pyenv-virtualenv:tldr:84d81

pyenv-virtualenv: Create a new Python 3.6.6 virtual environment.
$ pyenv virtualenv ${3-6-6} ${virtualenv_name}
try on your machine

The command pyenv virtualenv ${3-6-6} ${virtualenv_name} creates a virtual environment using the Python version specified by 3-6-6.

Let's break down the command:

  • pyenv: This is a command-line tool used for managing multiple versions of Python on a single machine.

  • virtualenv: This is a pyenv command that creates a virtual environment. A virtual environment is an isolated Python environment where you can install specific packages and dependencies without affecting the system-wide Python installation.

  • ${3-6-6}: This is a placeholder for the desired Python version. In this case, it represents Python version 3.6.6, and it should be replaced with the actual version number you want to use.

  • ${virtualenv_name}: This is another placeholder, which should be replaced with the desired name for the virtual environment. It can be any string you choose to identify the environment.

In summary, the command creates a virtual environment named ${virtualenv_name} using the Python version 3.6.6.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pyenv tool