Setting (2019-03-14)
Setting
IDLE & TOOL
Python install (Window)
Python install (Mac)
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install python3
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