Python: Update pyenv without thinking and solve the "where is Python?" Phenomenon

I'm using Homebrew on my Mac. The OS is Catalina, but I want to decide the Python version myself, so I manage the Python environment with pyenv and pip instead of Python3 on my system.

It happened about twice, but when I run brew update on Homebrew and do brew upgrade without thinking about anything, pyenv may be updated. After pyenv is updated, even if you do `` `python3, you will be impatient with the message "No such file".

in this case,

pyenv rehash
pyenv global 3.8.1

After rehash, respecify the version you want to use with global, and it will return to the original. It's common sense for people who are familiar with pyenv, but I'll post it just in case, as a memorandum of my own.

that's all

Recommended Posts

Python: Update pyenv without thinking and solve the "where is Python?" Phenomenon
Where is the python instantiation process written?
The answer of "1/2" is different between python2 and 3
[Xonsh] The Python shell is sharp and god
About the difference between "==" and "is" in python
The story of Python without increment and decrement operators.
Install the latest stable Python with pyenv (both 2 and 3)
Solve the one-stroke writing (backtrack without recursion in Python)
Solve the spiral book (algorithm and data structure) with python!
Automatically get the port where Arduino is stuck in Python
Initial setting of Mac ~ Python (pyenv) installation is the fastest
[Python] Python and security-① What is Python?
python with pyenv and venv
Identity and equivalence Python is and ==
The story of running python and displaying the results without closing vim
Solve the Python knapsack problem with a branch and bound method
The story of Python and the story of NaN
Difference between == and is in python
[Python] What is @? (About the decorator)
[python] What is the sorted key?
What is the python underscore (_) for?
[Introduction to Python] What is the difference between a list and a tuple?
[Python] Sweet Is it sweet? About suites and expressions in the official documentation
Work memo to migrate and update Python 2 series scripts on the cloud to 3 series
[Python] Case where the execution time differs between the built-in list and deque
Prepare a development environment that is portable and easy to duplicate without polluting the environment with Python embeddable (Windows)