LoginSignup
0
0

pyenvでPythonのversion切り替えをする方法 (M1 Mac)

Posted at

まず、現在のバージョンを確認する。

python --version

次に、pyenvを用いてインストール可能なバージョンを確認。

pyenv install --list

pyenvがそもそも入っていない場合は以下の方法でインストールする。

brew install pyenv

インストール可能なバージョンから選び、インストール。

pyenv install 3.7.2

pythonのバージョンを変更。

pyenv global 3.7.2

さらに以下のコマンドで情報を更新。

eval "$(pyenv init -)"

pythonのバージョンが更新されていることを確認。

python --version

参考記事

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