소스 검색

Add documentation for exec command (#2090)

pull/2093/head
sandipanpanda 4 년 전
committed by GitHub
부모
커밋
0688b17cc1
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일16개의 추가작업 그리고 0개의 파일을 삭제
  1. +16
    -0
      COMMANDS.md

+ 16
- 0
COMMANDS.md 파일 보기

@ -16,6 +16,7 @@ The most common subcommands are:
* [`pyenv versions`](#pyenv-versions)
* [`pyenv which`](#pyenv-which)
* [`pyenv whence`](#pyenv-whence)
* [`pyenv exec`](#pyenv-exec)
* [`pyenv root`](#pyenv-root)
* [`pyenv prefix`](#pyenv-prefix)
* [`pyenv hooks`](#pyenv-hooks)
@ -282,6 +283,21 @@ Lists all Python versions with the given command installed.
2.7.6
3.3.3
## `pyenv exec`
`Usage: pyenv exec <command> [arg1 arg2...]`
Runs an executable by first preparing PATH so that the selected Python
version's `bin` directory is at the front.
For example, if the currently selected Python version is 3.9.7:
`pyenv exec pip install -r requirements.txt`
is equivalent to:
`PATH="$PYENV_ROOT/versions/3.9.7/bin:$PATH" pip install -r requirements.txt`
## `pyenv root`
Displays the root directory where versions and shims are kept.

불러오는 중...
취소
저장