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

バージョン管理ソフト:pyenvのインストール

Last updated at Posted at 2023-02-05

https://github.com/pyenv/pyenv#installation
参考記事

 curl https://pyenv.run | bash

を実行すると、オートインスト―ラーが実行される。

~/.bashrcに以下を追記

export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

そして

source ~/.bashrcを実行

ここまでで、セットアップ完了。

次にHOMEで

pyenv install 3.10.1

プロジェクト作成中のディレクトリに移動し、

pyenv local 3.10.1

を実行。

pyenv version

でプロジェクト内で、pythonの指定が出来ているか、最終確認が
出来る。

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