본문 바로가기

Python

python, pipenv 설치

반응형
https://devbull.xyz/python-create-environment/

https://technote.kr/375

https://incomeplus.tistory.com/187

 

choco install python3

 

refreshenv

 

파워쉘 재실행

 

pip install pipenv

pipenv 전역 설치

 

프로젝트마다 가상 환경 생성하기 위해서

cmd 실행 (파워쉘에서 pipenv 명령어가 되지않는다. 리부팅이 필요한듯)

작업할 프로젝트의 경로에서 pipenv shell

 

vscode도 가상 환경의 파이썬을 인식하게 설정해주어야한다

ctrl + shift + p

python select interpreter를 검색하면 파이썬 기본 설치 경로와 가상 환경이 뜬다

여기서 가상 환경으로 바꿔주면 된다

 

 

ctrl + shift + p 대신 vscode 좌측 하단의 파이썬 경로를 클릭해서 수정해도 된다

 

반응형