-
Notifications
You must be signed in to change notification settings - Fork 0
pyenv
noweaver edited this page Oct 8, 2018
·
5 revisions
$ sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev
$ git clone https://github.com/pyenv/pyenv.git ~/.pyenv
$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
$ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
$ source ~/.bash_profile
$ pyenv --version
pyenv 1.2.7-7-g21c75c1
$ pyenv versions
pyenv: no such command `versios'
// 파이썬 종류 확인
$ pyenv install -l
$ pyenv install 3.7.0
$ pyenv versions
3.7.0
$ pyenv install anaconda3-5.3.0
$ pyenv versions
3.7.0
anaconda3-5.3.0
$ pyenv global 3.7.0
$ pyenv versions
* 3.7.0 (set by /home/spark/.pyenv/version)
anaconda3-5.3.0
$ pyenv global anaconda3-5.3.0
3.7.0
* anaconda3-5.3.0 (set by /home/spark/.pyenv/version)