Linux command
poetry-env 命令
文本
Copy it and replace filenames, paths, or keywords as needed.
命令示例
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.