Skip to content

Instantly share code, notes, and snippets.

@LeoHeo
Last active May 29, 2016 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeoHeo/479c678eb8e0a31d91cd0e43e34362b4 to your computer and use it in GitHub Desktop.
Save LeoHeo/479c678eb8e0a31d91cd0e43e34362b4 to your computer and use it in GitHub Desktop.
python command

python 버전 바꾸기

$ pyenv shell 3.5.1
$ python --version

python 가상환경 만들기

$ pyenv virtualenv 3.5.1 [name]

python 가상환경 삭제하기

$ pyenv uninstall [name]

python 가상환경 리스트

$ pyenv virtualenvs

python 가상환경 들어가기

$ pyenv activate [name]
$ pyenv deactivate [name]

해당 name으로 들어갔을때 자동으로 pyenv activate 설정

$ mkdir [directoy name]
$ cd [directory name]
$ vi .env
echo "--------------"
echo "WebProgramming"
echo "-------------"

pyenv activate [name]
@LeoHeo
Copy link
Author

LeoHeo commented May 13, 2016

pyenv command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment