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