1. autoenv 설치
git clone git://github.com/kennethreitz/autoenv.git ~/.autoenv 
echo ‘source ~/.autoenv/activate.sh’ >> ~/.zprofile #혹은 .bash_profile source ~/.zprofile #혹은 .bash_profile

2. autoenv 디렉토리에 설정

mkdir autoenvDir cd autoenvDir 
echo “conda activate py36” > .env

3. autoenv 동작 확인

# .env 파일을 만들어 놓은 폴더로 이동시 autoenv 동작을 확인한다 
cd autoenvDir
autoenv:
autoenv: WARNING:
autoenv: This is the first time you are about to source /home/jjeaby/autoenvDir/.env:
autoenv:
autoenv: — — (begin contents) — — — — — — — — — — — — —— — — — —
autoenv: conda deactivate $ autoenv: conda activate py36$
autoenv:
autoenv: — — (end contents) — — — — — — — — — — — — —— — — — — —
autoenv:
autoenv: Are you sure you want to allow this? (y/N) y
(py36) ➜

+ Recent posts