Pyenv 에서 System 에서 사용하도록 Python 버전 설정하기
$ pyenv
pyenv 2.3.19
Usage: pyenv <command> [<args>]
Some useful pyenv commands are:
--version Display the version of pyenv
commands List all available pyenv commands
exec Run an executable with the selected Python version
global Set or show the global Python version(s)
help Display help for a command
hooks List hook scripts for a given pyenv command
init Configure the shell environment for pyenv
install Install a Python version using python-build
latest Print the latest installed or known version with the given prefix
local Set or show the local application-specific Python version(s)
prefix Display prefixes for Python versions
rehash Rehash pyenv shims (run this after installing executables)
root Display the root directory where versions and shims are kept
shell Set or show the shell-specific Python version
shims List existing pyenv shims
uninstall Uninstall Python versions
version Show the current Python version(s) and its origin
version-file Detect the file that sets the current pyenv version
version-name Show the current Python version
version-origin Explain how the current Python version is set
versions List all Python versions available to pyenv
whence List all Python versions that contain the given executable
which Display the full path to an executable
- Shell 에서 사용하기 위해서는 아래의 명령어를 실행
$ pyenv shell 3.10.12 2.7.18
- global 에서 사용하기
$ pyenv global 3.10.12 2.7.18
- 세팅 확인
$ pyenv version
system
* 2.7.18 (set by PYENV_VERSION environment variable)
3.8.17
* 3.10.12 (set by PYENV_VERSION environment variable)
댓글
댓글 쓰기