4주차 공지 (2019-04-04)

OOP(Object-Oriented Programming)

객체 지향 프로그래밍에 대해서 배웁니다.

OOP 강의자료

비밀지도

같이 해결해봐요 😝

비밀지도 코드


Virtualenv install (Window)

pip install virtualenv
python3 -m venv myvenv

myvenv : 가상환경의 이름

Virtualenv install (Mac)

pip install virtualenv
python3 -m venv myvenv

아래와 같은 오류 발생시

The virtual environment was not created successfully because ensurepip is not available.  On Debian/Ubuntu systems, you need to install the python3-venv package using the following command.
    apt install python3-venv
You may need to use sudo with that command.  After installing the python3-venv package, recreate your virtual environment.
sudo apt install python3-venv

가상환경 실행 (Window)

myvenv\Scripts\activate

가상환경 실행 (Mac)

source myvenv/bin/activate

source가 없을 경우

. myvenv/bin/activate

Django install (가상환경 실행한 상태에서 설치)

python3 -m pip install --upgrade pip
pip install django