LoginSignup
0
0

More than 5 years have passed since last update.

pyenv for linux

Posted at

1. installing pyenv

getting from github

# git clone https://github.com/yyuu/pyenv ~/.pyenv

modify environment (add)

.zshrc
PATH=$PATH:$HOME/.pyenv/bin
eval "$(pyenv init -)"

check installed

# pyenv version
system (set by /root/.pyenv/version)

2. note

required library
gcc zlib-devel readline-devel openssl-devel
sqlite-devel bzip2-devel

did not install pip

# curl -kL https://bootstrap.pypa.io/get-pip.py | python

3. check func

# python -V
Python 2.6.6
# pyenv install --list
# pyenv install 2.7.12
# pyenv versions
* system (set by /root/.pyenv/version)
  2.7.12
# pyenv global 2.7.12
# pyenv rehash
#  python -V
Python 2.7.12
# pyenv versions
  system
* 2.7.12 (set by /root/.pyenv/version)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0