2026-09-08 02:55:49 +05:30
# pyenv-link
2026-09-08 09:42:50 +03:00
A [pyenv ](https://github.com/pyenv/pyenv ) plugin for linking Python installations and virtual environments into your pyenv root.
2026-09-08 02:55:49 +05:30
This plugin recommends the [pyenv-virtualenv ](https://github.com/pyenv/pyenv-virtualenv/ ) plugin.
## Usage
Make an arbitrary virtualenv available through pyenv. This automatically guesses a fitting name from the prompt, the directory name or the location of the venv.
```console
$ pyenv link version .venv
2026-09-08 09:42:50 +03:00
Linked new version named myproject
2026-09-08 02:55:49 +05:30
```
You can also specify a name to use for the venv.
```console
$ pyenv link version .venv myname
Linked new version named myname
```
2026-09-08 09:42:50 +03:00
The same command can give a platform-specific binary installation a shorter name:
2026-09-08 02:55:49 +05:30
```console
2026-09-08 09:42:50 +03:00
$ pyenv link version "$(pyenv root)/versions/3.13.14-linux-x86_64" 3.13.14
Linked new version named 3.13.14
2026-09-08 02:55:49 +05:30
```
2026-09-08 09:42:50 +03:00
Now you can make pyenv activate/use the venv automatically:
2026-09-08 02:55:49 +05:30
2026-09-08 09:42:50 +03:00
```console
$ pyenv local myproject
```