파이썬 가상환경인 pyenv를 윈도우에서 이용하기 위해서는 pyenv-win을 사용할 수 있다.
github:
https://github.com/pyenv-win/pyenv-win
Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1" -OutFile "./install-pyenv-win.ps1"; &"./install-pyenv-win.ps1"
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
pyenv --version
Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/pyenv-win/pyenv-win-venv/main/bin/install-pyenv-win-venv.ps1" -OutFile "$HOME\install-pyenv-win-venv.ps1";
&"$HOME\install-pyenv-win-venv.ps1"
github:
https://github.com/pyenv-win/pyenv-win-venv
pyenv install 3.10
pyenv-venv install 3.10.11 env_name
.python-version 파일에 가상환경 설정하기pyenv-venv local env_name