[PYTHON] Remove old pyenv environment on Mac and update

I tried to update it because pyenv seems to be old, but I can't. When I checked with witch, the following display was displayed. I can't remember what it was.

sot528@mac ~ % which pyenv
pyenv () {
	local command
	command="${1:-}"
	if [ "$#" -gt 0 ]
	then
		shift
	fi
	case "$command" in
		(activate | deactivate | rehash | shell) eval "$(pyenv "sh-$command" "$@")" ;;
		(*) command pyenv "$command" "$@" ;;
	esac
}

Cause

A long time ago, when I built the environment of pyenv, brew did not support it and I did it manually.

Correspondence

Since it was built in the root directory, delete it and put it back in with brew.

rm -fr ~/.pyenv
brew install pyenv

Recommended Posts

Remove old pyenv environment on Mac and update
Catalina on Mac and pyenv
Notes on building Python and pyenv on Mac
Python3 TensorFlow environment construction (Mac and pyenv virtualenv)
Install pyenv on mac
Pyenv + virtualenv on Mac
Try to build python and anaconda environment on Mac (by pyenv, conda)
Notes on setting pyenv and python environment using Homebrew on Mac OS Marvericks
Run OpenVino on macOS and pyenv and pipenv environment
Create a Python3 environment with pyenv on Mac and display a NetworkX graph
Install Python3 on Mac and build environment [Definitive Edition]
Install Python environment on local PC (pyenv, venv on Mac)
Pyramid + mongodb environment on Mac
Update python on Mac to 3.7-> 3.8
Pyenv on Mac OSX Mavericks
Python environment construction on Mac (pyenv, virtualenv, anaconda, ipython notebook)
Build a machine learning environment on mac (pyenv, deeplearning, opencv)
Building a Python environment on a Mac and using Jupyter lab
Building a Python environment on Mac
Anaconda environment construction on Mac (2018 version)
Create a Python environment on Mac (2017/4)
Python environment construction memo on Mac
Environment construction of python3.8 on mac
(Beginner) Notes on using pyenv on Mac
Environment construction with pyenv and pyenv-virtualenv
Update Python on Mac from 2 to 3
Build a Python environment on your Mac with Anaconda and PyCharm
Django Crispy Tutorial (Environment Building on Mac)
Build Python3 and OpenCV environment on Ubuntu 18.04
Python virtual environment and packages on Ubuntu
Create a python environment on your Mac
Put Anaconda on your Mac using Pyenv
Install pyenv and Python 3.6.8 on Ubuntu 18.04 LTS
Replacing rmtrash on Mac and replacing rm on Linux
[mac] Install R in pyenv + Jupyter-Lab environment
Install pyenv and rbenv on CentOS system-wide
Build python environment with pyenv on EC2 (ubuntu)
Build a Python environment on Mac (Mountain Lion)
Building an environment for matplotlib + cartopy on Mac
Build a Python development environment on your Mac
Build a virtual environment with pyenv and venv
Let's integrate Django and apache (httpd) on Mac! !!
python development environment -use of pyenv and virtualenv-
Put Python 2.7.x on Mac OSX 10.15.5 with pyenv
Zsh and prezto installation work log on Mac
Try importing MLB data on Mac and Python
How to build a beautiful Python environment on a new Mac and install Jupter Notebook
How to create a Python 3.6.0 environment by putting pyenv on Amazon Linux and Ubuntu
python on mac
Steps to quickly create a deep learning environment on Mac with TensorFlow and OpenCV
Clean install and work environment update for macOS Catalina
Build a Django development environment using pyenv-virtualenv on Mac
Maintain directory structure on Linux and move old files
Install selenium on Mac and try it with python
Building an environment for "Tello_Video" on Mac OS X
Build a machine learning Python environment on Mac OS
Build a Python development environment on Mac OS X
Installing Python 3 on Mac and checking basic operation Part 1
Environment construction with anyenv + pyenv (migrate from pyenv only (Mac))
Build a Python development environment using pyenv on MacOS
Install pyenv on Raspberry Pi and version control Python