← 返回命令列表

Linux command

poetry-env 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List environments

poetry env list

Show environment info

poetry env info

Use specific Python

poetry env use [python3.11]

Remove environment

poetry env remove [python3.11]

Show environment path

poetry env info --path

说明

poetry env manages virtual environments for Poetry projects. It can create, list, and remove environments, as well as switch between Python versions.

参数

--path
Show only environment path.
--executable
Show only Python executable.

FAQ

What is the poetry-env command used for?

poetry env manages virtual environments for Poetry projects. It can create, list, and remove environments, as well as switch between Python versions.

How do I run a basic poetry-env example?

Run `poetry env list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --path do in poetry-env?

Show only environment path.