파이썬(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
→ 현재의 가상환경을 종료하는 방법
'Python > Python 기초' 카테고리의 다른 글
Python(파이썬)/ 구글 코랩에서 인터넷에 있는 파일을 다운로드 하는 방법 (0) | 2022.06.15 |
---|---|
파이썬 개발을 위한 비주얼 스튜디오 코드 셋팅 방법 (0) | 2022.05.19 |
파이썬(Python) LIST COMPREHENSION(리스트 컴프리헨션) (0) | 2022.04.26 |
파이썬(Python) Loop 반복문 for (0) | 2022.04.25 |
파이썬(Python) 문자열 바꾸기 replace() 함수 (0) | 2022.04.25 |
댓글