Coding/Python Matlab

Anaconda Virtual Environment

smores 2023. 1. 13. 03:12

conda create -n P36 python=3.6
conda env list
conda activate P36
pip install pkgs   or   python -m pip install pkgs
deactivate or deactivate P36
conda env remove -n P36

 

 

 

 

https://dojang.io/mod/page/view.php?id=2470

파이썬 가상환경
해당 버전 파이썬으로 실행해서 폴더 단위로 가상환경 만듬 
여러 버전 파이썬이 필요하면 미리 여러버전 다른 폴더에 설치해 놓아야 함
C:\Python310, C:\Python36, ...

C:\project>python -m venv example
C:\project>cd example
C:\project\example>Scripts\activate.bat
(example) C:\project\example>