mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-30 17:33:50 +08:00
poetry-env: change virtualenv verbiage (#18056)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
This commit is contained in:
@@ -1,25 +1,33 @@
|
||||
# poetry-env
|
||||
|
||||
> Manage virtualenvs associated with a Poetry project.
|
||||
> Manage virtual environments associated with a Poetry project.
|
||||
> See also: `asdf`.
|
||||
> More information: <https://python-poetry.org/docs/cli/#env>.
|
||||
|
||||
- Print the command to activate a virtualenv:
|
||||
- Print the command to activate a virtual environment:
|
||||
|
||||
`poetry env activate`
|
||||
|
||||
- Display information about the current environment (-p or -e will display the environment's path or executable):
|
||||
- Display information about the current environment:
|
||||
|
||||
`poetry env info {{[-p|--path]}} {{[-e|--executable]}}`
|
||||
`poetry env info`
|
||||
|
||||
- List all virtualenvs associated with the current project (optionally showing the full path):
|
||||
- Display the path of the current environment:
|
||||
|
||||
`poetry env info {{[-p|--path]}}`
|
||||
|
||||
- Display the path of the current environment's Python executable:
|
||||
|
||||
`poetry env info {{[-e|--executable]}}`
|
||||
|
||||
- List all virtual environments associated with the current project (optionally showing the full path):
|
||||
|
||||
`poetry env list --full-path`
|
||||
|
||||
- Remove specific or all virtualenvs associated with the current project:
|
||||
- Remove specific or all virtual environments associated with the current project:
|
||||
|
||||
`poetry env remove python {{path/to/executable|environment_name}} | poetry env remove --all`
|
||||
|
||||
- Activate or create a virtualenv for the project using the specified python executable:
|
||||
- Activate or create a virtual environment for the project using the specified Python executable:
|
||||
|
||||
`poetry env use python {{path/to/executable}}`
|
||||
|
||||
Reference in New Issue
Block a user