[PYTHON] pyenv for linux

  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)
  1. 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
  1. 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)

Recommended Posts

pyenv for linux
[For memo] Linux Part 2
What is Linux for?
Linux command for self-collection
Linux Kernel Build for DE10nano
Linux distribution recommended for beginners
Flutter platform channels for Linux
Linux
Linux Command Dictionary (for myself)
Linux command memorandum [for beginners]
Convenient Linux shortcuts (for beginners)
[For memo] Linux Part 1 vi editor
Create Scratch Offline Editor for Linux
Install pyenv on EC2 (Amazon Linux)
Convenient shortcut keys for Linux commands! !! !!
Frequently used Linux commands (for beginners)
[Must-see for beginners] Basics of Linux
Teamviewer for Linux installation procedure (CentOS)
pykintone on Windows Subsystem for Linux
Linux Basic Education for Front-end Engineer
Use Azure AD for Linux authentication
Windows Subsystem for Linux is not displayed
Linux (for users and su / sudo commands)
linux memorandum
Linux command # 4
Linux commands
pyenv note
Linux commands
Linux basics
direnv (linux)
Organize Linux
pyenv memo
linux commands
Linux practice
[Linux command summary] Command list [Must-see for beginners]
Ubuntu Linux 20.04
[Linux] Fixed paths for multiple serial devices
Linux Summary
Linux process
pyenv summary
Linux permissions
Linux operation for beginners Basic command summary
Linux command # 5
About Linux
How to install Windows Subsystem For Linux
Summary of petit techniques for Linux commands
Linux basics
Forgot linux
Real Time Clock (RTC) Drivers for Linux
Let's try Linux for the first time
About Linux
Linux commands
Linux commands
About Linux
About Linux
About Linux ①
Linux redirect
[Linux] Review of commands for deploying on AWS
[Linux command] cp command option list [Must-see for beginners]
[Linux command] ls command option list [Must-see for beginners]
[Linux command] less command option list [Must-see for beginners]