# 프로젝트 폴더로 이동 후 생성
$ python -m venv {가상환경명}
$ .\{가상환경명}\Scripts\activate
$ pip install pandas
$ deactivate
$ pip freeze > requirements.txt
$ pip install -r requirements.txt
# 디렉토리에 파일이 있으면 삭제되지 않음
$ rmdir {가상환경명}
# 디렉토리에 파일이 있어도 강제 삭제
$ rmdir /S /Q test
conda create -n <가상환경명> python={버전}
conda activate <가상환경 이름>
ㄴ(가상환경명)C:\Users.... 이면 활성화된 것
pip install <패키지명>
conda install <패키지명>
conda install -n <가상환경명> <패키지명> #가상환경 접속 안하고 설치
pip uninstall <패키지이름>
conda remove <패키지명> #가상환경 활성화 시
conda remove -n <가상환경명> <패키지명> #가상환경 비활성화 시
pip freeze #가상환경 활성화 후 진행
conda list
ㄴ특정 문자열이 포함된 패키지만 조회
conda list | findstr <특정 문자열>
requirements.txt #pip freeze 먼저 수행, txt파일명 사용자 지정
pip freeze>requirements.txt
requirements.txt #conda list --export 먼저 수행, txt파일명 사용자 지정
conda list --export>requirements.txt
다른 가상환경 접근,
pip install -r requirements.txt
conda install --requirements.txt
conda deactivate
conda env remove -n <가상환경명> #삭제하고자 하는 가상환경이 activate되어 있으면 안됨
conda info --envs
https://ksr930.tistory.com/306
https://stackoverflow.com/questions/41979133/import-conda-package-list-to-default-env
https://docs.python.org/ko/3/tutorial/venv.html
https://gist.github.com/supriya-premkumar/30109ec4b59734baf8005acc79eef03b
참고) anaconda upgrade
conda update -n base conda #conda 코어만 update, 라이브러리들은 별도 update
conda update --all #conda 내 파이썬 관련 패키지 전체 update
conda update -n .<가상환경명> --all #특정 가상환경 내 패키지 전체 update
python -m pip install --upgrade pip # pip install packages 업데이트
conda search python #설치 가능한 python 버전 확인
conda install python={버전} #특정 버전으로 python 설치
#가상환경 재시작
conda deactivate
conda activate
https://challenge.tistory.com/3
https://devbull.xyz/python-create-environment/amp/