LoginSignup
0
0

More than 5 years have passed since last update.

Installing pyenv on ubuntu 16.04

Last updated at Posted at 2016-05-19

Why?

  • I really wanted to get things done without installing stuff using sudo as much as possible.
    • All I want is to get mkdocs/sphinx
  • Fear of contaminating the system specified python version
  • From times to times, would like to switch python versions.

How?

  • Fork the github repo. https://github.com/yyuu/pyenv and follow the instructions in the Readme
    • Added the configuration to .zshrc () instead of the mentioned .bash_profile
  • Restart the shell or 'source ~/.zshrc'
  • pyenv install x.x.x
  • Get an error message saying libraries are missing.
  • Refer to https://github.com/yyuu/pyenv/wiki/Common-build-problems. Install the stuff with sudo.
  • pyenv install again, and it should work.
  • Switch the python version with pyenv global 2.7.8.

Result?

Happiness :)

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