37일차 : Django 설치 (anaconda)
2023. 6. 30. 14:10ㆍ카테고리 없음
728x90
가상환경 설정을 한다.
1. 가상환경 이름 : busan_django 생성
2. 작업 폴더 생성 : c:/edu_busan/tutorial 생성
3. 시스템폴더이름 : config
anaconda prompt 실행
conda create -n busan_django python=3.9
conda activate busan_django
pip install jupyter notebook
python -m ipykernel install --user --name busan_django --display-name busan_django_kernel
jupyter notebook
(중간 중간 나오는 물음엔 y을 눌러서 진행하면 된다)
jupyter notebook으로 들어가 커널연결이 된지 확인! (오른 쪽 상단에서 new 배너 클릭 후 커널 연결로 확인)
anaconda prompt로 돌아가서
pip install ipython jupyter matplotlib pandas xlrd seaborn scikit-learn
pip install openpyxl
cd c:/edu_busan/tutorial
conda install -c conda-forge django==4.0.1
Django-admin startproject config .
python manage.py runserver
--- 여기까지 Django 사용을 위한 환경 구축이다.