0
0

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 1 year has passed since last update.

pyenv バグ

Last updated at Posted at 2023-11-04

なぜかpyenvを実行すると途中で止まり、pythonなども使えなくなった。

~/.bashrcの

eval "$(pyenv init -)"

をコメントアウトすると
source ~/.bashrcが回る。

pyenv updateでpyenvをupdateしたところ、

pyenv: cannot rehash: /path/to/pyenv/.pyenv/shims/.pyenv-shim exists

とでてきた。

rm -rf /path/to/pyenv/.pyenv/shims/.pyenv-shim

してから、~/.bashrcの

eval "$(pyenv init -)"

をコメントアウトしたらなんか治った気がする。

↑ この対応だとpythonが使えなくなった。
pyenv init -も途中でpyenv rehashをしていて
そこでスタックしていたようだ。

以下は参考になりそう:
https://github.com/pyenv/pyenv/issues/2256

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?