목록Programming/Python (9)
소연이의 메모장
지난 포스팅에서 아나콘다 가상환경을 만들었다. [Python] 윈도우 환경에서 아나콘다 가상환경 설치 및 삭제하기 아나콘다에서 작업을 한다면 가상환경을 만드는 것을 꼭꼭 강력하게 추천한다. 아니 꼭 하라고 말하고 싶다. 그 이유는.. 잘못되면 그냥 다 엎어버릴 수 있기 때문에. 다 엎어버린다는 게 폭력적 xoyeon.tistory.com 이번 포스팅에서는 그때 만들었던 아나콘다 가상환경에 주피터 노트북을 설치해 볼 것이다. 1. 가상환경 활성화하기 conda activate 가상환경이름 일단 주피터 노트북을 설치할 가상환경을 활성화시킨다. (base) C:>conda activate xoyeon >> (xoyeon) C:> 2. 주피터 노트북 설치하기 pip install jupyter notebook ..
아나콘다에서 작업을 한다면 가상환경을 만드는 것을 꼭꼭 강력하게 추천한다. 아니 꼭 하라고 말하고 싶다. 그 이유는.. 잘못되면 그냥 다 엎어버릴 수 있기 때문에. 다 엎어버린다는 게 폭력적으로 들릴 수도 있지만 여러 라이브러리를 설치함과 동시에 버전이 꼬여버리면 하루종일 에러와 싸움을 해도 끝이 나지 않는 경우가 많다. 그럴 때 가상환경이 있다면 아주 간단하게 밀어버리고 다시 시작할 기회가 주어진다. 자, 그럼 시작해 보자. 윈도우 창에서 Anaconda Prompt를 검색하여 열어준다. 이때 주의할 것은 Powershell 아님! 1. 가상환경 설치하기 conda create -n 가상환경이름 python=버전 python 버전을 지정하지 않으면 최신 버전이 설치된다. 그렇게 되면 골치가 아프다. 이..
자, Back to Basic이다. 왜 아나콘다를 '활용'하여 파이썬을 설치해야 할까? 파이썬은 컴퓨터와 소통하기 위한 언어 중 하나다. 이 파이썬을 다운로드하려면 공식홈페이지에서 받는 것이 가장 적절하다. 그렇지만 나는 파이썬을 직접 다운로드하지 않고 아나콘다라는 배포판을 활용하고자 한다. 1. 아나콘다를 '활용'하여 파이썬을 설치하는 이유 정답 : 아나콘다가 편리하기 때문이다. ML/DL을 다루기 위해서는 다양한 패키지를 활용해야 하는데 파이썬 공식홈페이지에서 다운을 받는다면 정말 필요한 최소한의 프로그램만 깔리기 때문에 수많은 패키지들을 일일이 다운로드하여야 하는 번거로움이 생긴다. 따라서 수고를 줄이고자 아나콘다라는 배포판을 사용할 것이다. 2. 아나콘다 설치하기 파이썬과 마찬가지로 안전하게 아나..