가상환경 설정(cmd/PowerShell/window) cheat sheet

SeungHyun·2024년 4월 11일

etc

목록 보기
5/9
post-thumbnail

0. cheat sheet(cmd)

기능명령어
가상환경 생성python -m venv 가상환경이름
생성된 가상환경 목록where python
가상환경 활성화가상환경이름\Scripts\activate
가상환경 비활성화deactivate
가상환경 삭제rd /s /q 가상환경_디렉토리
  • 가상환경 삭제는 별거 없이 그냥 디렉토리를 삭제하면 된다.

0. cheat sheet(PowerShell)

기능명령어
스크립트 실행 정책 변경(선택)Set-ExecutionPolicy Unrestricted -Scope Process
가상환경 생성python -m venv 가상환경이름
가상환경 활성화가상환경이름\Scripts\Activate.ps1
가상환경 비활성화deactivate
가상환경 삭제Remove-Item -Path 가상환경_디렉토리 -Recurse -Force
  • 가상환경 삭제는 별거 없이 그냥 디렉토리를 삭제하면 된다.

ref

profile
어디로 가야하오

0개의 댓글