2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Macで古いpyenv環境を除却してupdate

Posted at

pyenvが古いようなので更新しようと思ったができない。
witchで確認したところ以下のような表示。なんだったか思い出せない。

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
}

原因

昔、pyenvの環境を構築した際にbrewが対応しておらず手動で行っていた。

対応

ルートディレクトリに構築していたので、それを削除してbrewで入れ直す。

rm -fr ~/.pyenv
brew install pyenv
2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?