-
Notifications
You must be signed in to change notification settings - Fork 0
Python 환경
noweaver edited this page Aug 27, 2018
·
2 revisions
- Ubuntu 16.04
$ 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$ git clone git://github.com/pyenv/pyenv-update.git ~/.pyenv/plugins/pyenv-update
$ pyenv update$ pyenv install --list
$ pyenv install anaconda3-5.2.0$ git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
$ echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bash_profile
$ source ~/.bash_profile$ pyenv virtualenv [python version] [virtual environment name]
$ pyenv virtualenv anaconda3-5.2.0 anaconda-352$ pyenv activate [virtual environment name]
(virtual environment name)$ pyenv deactivate