pyenv local 3.9.8 # Activate Python 3.9 for the current project
pyenv local 3.9.8 # Activate Python 3.9 for the current project
poetry install
poetry install
```
```
{{% /note %}}
{{% /note %}}
{{% note %}}
{{% note %}}
...
@@ -106,6 +107,13 @@ to `env info`:
...
@@ -106,6 +107,13 @@ to `env info`:
poetry env info --path
poetry env info --path
```
```
If you only want to know the path to the python executable (useful for running mypy from a global environment without installing it in the virtual environment), you can pass the `--executable` option
to `env info`:
```bash
poetry env info --executable
```
## Listing the environments associated with the project
## Listing the environments associated with the project
You can also list all the virtual environments associated with the current project
You can also list all the virtual environments associated with the current project