[PYTHON] Pyenv on Mac OSX Mavericks

Overview

I haven't written anything more than an introductory article about other people.

Install pyenv with homebrew, The content is that I don't use anyenv.

I wanted to include awscli.

PATH

Understanding Shims | yyuu/pyenv Understanding Shims

pyenv works by inserting a directory of shims at the front of your PATH:

~/.pyenv/shims:/usr/local/bin:/usr/bin:/bin

That's why Write the setting to pass the path to ~ / .pyenv / shims in the file that is read when the shell starts.

The following settings initialize pyenv by adding the path only if ~ / .pyenv exists.

# pyenv -----------------------------------------
if [ -d $HOME/.pyenv ]; then
  export PATH="${HOME}/.pyenv/shims:$PATH"
  eval "$(pyenv init -)"
fi

Install

//Install pyenv using brew
$ brew install pyenv

//Install plugin to automate pyenv rehash
$ git clone https://github.com/yyuu/pyenv-pip-rehash.git ~/.pyenv/plugins/pyenv-pip-rehash

//Check the installable version
$ pyenv install -l

//Install by specifying the version of python
$ pyenv install 2.7.8

//python path check
$ which python
/Users/qurage/.pyenv/shims/python

//python version check
$ python --version                                
Python 2.7.8

// easy_install path check
$ which easy_install
/Users/qurage/.pyenv/shims/easy_install

// easy_install version check
$ easy_install --version
setuptools 5.7

//Check pip version and path
$ pip —version
pip 1.5.6 from /Users/qurage/.pyenv/versions/2.7.8/lib/python2.7/site-packages (python 2.7)

Check Python.org for a stable version of Python

reference

Recommended Posts

Pyenv on Mac OSX Mavericks
Install pyenv on mac
Pyenv + virtualenv on Mac
Install pyenv on OSX
Put Python 2.7.x on Mac OSX 10.15.5 with pyenv
Install pillow on Mac OSX 10.9
Catalina on Mac and pyenv
(Beginner) Notes on using pyenv on Mac
Put Anaconda on your Mac using Pyenv
Notes on building Python and pyenv on Mac
python on mac
Remove old pyenv environment on Mac and update
Install Tensorflow on Mac
Install pip on Mavericks
Install Python on Mac
Install Python 3 on Mac
numba installation on mac
Run OpenMVG on Mac
Install Python 3.4 on Mac
Installing pyenv on ubuntu 16.04
Install Caffe on Mac
Install mecab on mac
Install mecab-python on Mac
Try deepdream on Mac
Build a Python environment on your Mac using pyenv
Install Python environment on local PC (pyenv, venv on Mac)
Minimum memo when using Python on Mac (pyenv edition)
Python environment construction on Mac (pyenv, virtualenv, anaconda, ipython notebook)
Build a machine learning environment on mac (pyenv, deeplearning, opencv)
Create a Python (pyenv / virtualenv) development environment on Mac (Homebrew)
Notes on installing dlib on mac
Pyramid + mongodb environment on Mac
Install pygame on python3.4 on mac
Install module on Anaconda (Mac)
Install OpenPose on mac (Catalina)
Notes on pyenv and Atom
Install numba on your Mac
Handling of python on mac
Update python on Mac to 3.7-> 3.8
Install pandas 0.14 on python3.4 [on Mac]
Launch local server on mac
Notes on installing Python on Mac
Install Django on your Mac
Build a Python extension for E-Cell 4 on Mac OSX (Yosemite)
Mac + fish + pyenv + VSCode (April 2020)
[Mac] Tips: Install pyquery on Mac [pyquery]
Use matplot libwidget on mac
Memo on Mac OS X
Notes on installing pipenv on Mac
Introduced pyenv on Raspberry Pi
I set the python operating environment on OSX Yosemite (pyenv + pip)
How to rebuild python environment from pyenv on Mac environment (El Capitan)
Ansible playbook for setting up Python preferences using pyenv on Mac
Notes on installing Caffe in CPU mode on Mac OSX 10.11 (El Captain)
How to install Theano on Mac OS X 10.10 (using pyenv, anaconda)
Building a Python environment on Mac
If python on mac goes missing
tensor flow with anaconda on mac
Install anaconda on Mac → Add Library
MQTT on Raspberry Pi and Mac
How to install mysql-connector-python on mac