기본 콘텐츠로 건너뛰기

2월, 2024의 게시물 표시

Pyenv 에서 System 에서 사용하도록 Python 버전 설정하기

Pyenv 에서 System 에서 사용하도록 Python 버전 설정하기 node 나 npm 을 설치하고 npm install 시 python 버전이 맞지 않아 에러가 나는 경우가 있다 이럴때 pyenv 로 버전을 명시하여 사용 할 수 있음 $ 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 whe