I will summarize how to isolate the problem when installing pyenv Please refer to the official materials as much as possible to install. Official: https://github.com/pyenv/pyenv#installation
Judge whether it is "python set by pyenv" or "python installed by default in the OS"
#mac default python
$ which python
/usr/bin/python
#pyenv python
$ which python
/Users/xxxx/.pyenv/shims/python
In shell, I need to read the environment variables of pyenv Check because the location to load the environment variable of pyenv differs depending on the shell.
$ echo $SHELL
/bin/zsh
The description method is described in the official 2. Define environment variable PYENV_ROOT ...
Since the description method is different for each shell, the explanation is omitted.
https://github.com/pyenv/pyenv#basic-github-checkout
It may work normally by refreshing the settings of shell and pyenv.
//Refresh shell settings
$ exec "$SHELL"
//Refresh pyenv settings
$ pyenv rehash
Finally, in this qiita, we summarized how to isolate the problem. I think that the installation method is "it's okay if you look at the official b", but I think that you may stumble at the first setting, so I want to be an engineer who can isolate the problem at that time. Official: https://github.com/pyenv/pyenv#installation
Recommended Posts