# setting
open ~/.zshrc
code ~/.zshrc # to vsc
- i
- esc :wq
source ~/.zshrc
. ~/.zshrc
# terminal
cd dir # change directory
cd.. # 상위 디렉토리 이동
mkdir dir # make directory
rmdir dir # remove directory
torch 파일명.확장자명 # 파일 생성
clear # 터미널 화면 클리어
ls # 경로 내 파일 조회
ls -al # 숨겨진 파일 포함 리스팅
각 디렉토리 마다 별도의 가상환경이 생성되고, 해당 디렉토리의 가상 환경에 진입되는 방식
가상환경은 기본적으로
/Users/{user명}/.local/share/virtualenvs/{폴더명}-{난수번호}/경로
에 설치됨
pipenv --python version # virtualenv 생성
pipenv install
pipenv shell # virtualenv 진입
exit
deactivate # virtualenv 종료
pipenv --venv
pipenv --py # virtualenv 경로 확인
pipenv --rm # 가상 환경 제거
pipenv graph # 패키지 목록 보기
[mac os] 터미널 개발환경 세팅
맥에서 파이썬을 위한 환경 설정
M1 맥 개발환경 설정
맥 터미널 안 열리는 경우