본문 바로가기
Python/Python 기초

파이썬(Pysthon) Visual Studio에서 파이썬 가상환경 설치

by healingmau 2022. 7. 10.

파이썬(Pysthon) Visual Studio에서 파이썬 가상환경 설치

 

 

 

(base) > python --version

 

(base) > conda info --envs

 

(base) > conda create -n streamlit python=3.7.10 tensorflow numpy scipy

matplotlib ipython scikit-learn pandas pillow jupyter seaborn

 

1. 콘다로 가상환경 만드는것

(파이썬만 설치하는 경우)

 

conda create -n 가상환경이름 python=3.8

 

2. 설치된 파이썬과 설치된 라이브러리를

파일로 옮기는 것!

 

conda lst --explicit > spec-file.txt

 

3. 파일을 가지고 새로운 가상환경 만들기

conda create -n 가상환경이름 --file spec-file.txt

 

4. 가상환경에 들어가고 나오는 방법

 

conda activate 가상환경이름

→ 들어가는 방법

 

conda deactivate

→ 현재의 가상환경을 종료하는 방법

 

 

댓글