Work memo The working environment is Ubuntu 14.04
Use the installer of the following project https://github.com/yyuu/pyenv-installer
$ curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
At the end, the following message appeared, so describe it in bash_profile as it is.
# Load pyenv automatically by adding
# the following to ~/.bash_profile:
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
Read
source .bashrc
The plugins contained the following:
pyenv-doctor
pyenv-installer
pyenv-pip-rehash
pyenv-update
pyenv-virtualenv
pyenv-which-ext
python-build
$ pyenv install 3.4.3
Downloading Python-3.4.3.tgz...
-> https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tgz
Installing Python-3.4.3...
WARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib?
WARNING: The Python readline extension was not compiled. Missing the GNU readline lib?
WARNING: The Python sqlite3 extension was not compiled. Missing the SQLite3 lib?
Installed Python-3.4.3 to /home/user/.pyenv/versions/3.4.3
Install lib that seems to be insufficient because it has become
sudo apt-get install libsqlite3-dev
sudo apt-get install bzip2 libbz2-dev
sudo apt-get install libssl-dev openssl
sudo apt-get install libreadline6 libreadline6-dev
This time, I was able to confirm that it was installed properly and installed as follows.
$ pyenv versions
* system
3.4.3
https://github.com/yyuu/pyenv-virtualenv
pyenv virtualenv 2.7.7 my-virtual-env-2.7.7
Recommended Posts