1
1

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.

pyenv globalが出来ない時の対処法

Posted at

エラー内容

pyenv global 3.6.Xをしたのにも関わらず、pyenv versionsでは変化が見られなかった。

原因

ホームディレクトリでpyenv local 3.X.Xなどをしてしまうのが問題。
pyenv localコマンドで生成された~/.python-versionファイルが悪さをして上書きループに入ってしまっている。

対処法

・下記コマンドを実行

chmod +x ~/.python-version
rm -rf ~/.python-version

 ・ls -laでファイルがないのを確認できたらOK

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?