質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

Q&A

解決済

1回答

4091閲覧

macでPythonをバージョンアップできない

kotaosu

総合スコア15

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

0グッド

0クリップ

投稿2021/05/30 10:12

現在のPythonのバージョンが2.7.16であり、homebrewを使用して最新のバージョン3.9.5にインストールしようとしていますが、エラーがでてインストールできない状態となっています。

何が原因なのかわからず、この状態からどうすれば正常に実行できるでしょうか。
ご教授お願いいたします。

The default interactive shell is now zsh.
To update your account to use zsh, please run chsh -s /bin/zsh.
For more details, please visit https://support.apple.com/kb/HT208050.
MacBook-Pro:~ kotaosu$ brew -v
Homebrew 3.1.9-64-geeef3f4
Homebrew/homebrew-core (git revision c12eadc; last commit 2017-09-09)
Homebrew/homebrew-cask (git revision 6ce1a529aa; last commit 2021-05-30)
MacBook-Pro:~ kotaosu$ brew install pyenv
Error:
homebrew-core is a shallow clone.
To brew update, first run:
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
This command may take a few minutes to run due to the large size of the repository.
This restriction has been made on GitHub's request because updating shallow
clones is an extremely expensive operation due to the tree layout and traffic of
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you
automatically to avoid repeatedly performing an expensive unshallow operation in
CI systems (which should instead be fixed to not use shallow clones). Sorry for
the inconvenience!
Warning: Calling cellar in a bottle block is deprecated! Use brew style --fix on the formula to update the style or use sha256 with a cellar: argument instead.
Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pyenv.rb:10

Warning: Calling sha256 "digest" => :tag in a bottle block is deprecated! Use brew style --fix on the formula to update the style or use sha256 tag: "digest" instead.
Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pyenv.rb:11

Warning: Calling sha256 "digest" => :tag in a bottle block is deprecated! Use brew style --fix on the formula to update the style or use sha256 tag: "digest" instead.
Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pyenv.rb:12

Warning: Calling sha256 "digest" => :tag in a bottle block is deprecated! Use brew style --fix on the formula to update the style or use sha256 tag: "digest" instead.
Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pyenv.rb:13

Warning: Calling cellar in a bottle block is deprecated! Use brew style --fix on the formula to update the style or use sha256 with a cellar: argument instead.
Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/autoconf.rb:9

Warning: Calling sha256 "digest" => :tag in a bottle block is deprecated! Use brew style --fix on the formula to update the style or use sha256 tag: "digest" instead.
Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/autoconf.rb:11

Warning: Calling sha256 "digest" => :tag in a bottle block is deprecated! Use brew style --fix on the formula to update the style or use sha256 tag: "digest" instead.
Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/autoconf.rb:12

Warning: Calling sha256 "digest" => :tag in a bottle block is deprecated! Use brew style --fix on the formula to update the style or use sha256 tag: "digest" instead.
Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/autoconf.rb:13

Warning: Calling sha256 "digest" => :tag in a bottle block is deprecated! Use brew style --fix on the formula to update the style or use sha256 tag: "digest" instead.
Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/autoconf.rb:14

Warning: Calling sha256 "digest" => :tag in a bottle block is deprecated! Use brew style --fix on the formula to update the style or use sha256 tag: "digest" instead.
Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/autoconf.rb:15

Warning: Calling sha256 "digest" => :tag in a bottle block is deprecated! Use brew style --fix on the formula to update the style or use sha256 tag: "digest" instead.
Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb:9

Warning: Calling sha256 "digest" => :tag in a bottle block is deprecated! Use brew style --fix on the formula to update the style or use sha256 tag: "digest" instead.
Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb:10

Warning: Calling sha256 "digest" => :tag in a bottle block is deprecated! Use brew style --fix on the formula to update the style or use sha256 tag: "digest" instead.
Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb:11

Warning: Calling sha256 "digest" => :tag in a bottle block is deprecated! Use brew style --fix on the formula to update the style or use sha256 tag: "digest" instead.
Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl.rb:13

Warning: Calling sha256 "digest" => :tag in a bottle block is deprecated! Use brew style --fix on the formula to update the style or use sha256 tag: "digest" instead.
Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl.rb:14

Warning: Calling sha256 "digest" => :tag in a bottle block is deprecated! Use brew style --fix on the formula to update the style or use sha256 tag: "digest" instead.
Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl.rb:15

Warning: Calling cellar in a bottle block is deprecated! Use brew style --fix on the formula to update the style or use sha256 with a cellar: argument instead.
Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/makedepend.rb:8

Error: readline: undefined method `undent' for #String:0x00007fdf863a0d78
MacBook-Pro:~ kotaosu$

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

jbpb0

2021/05/30 10:41 編集

> Error: homebrew-core is a shallow clone.To brew update, first run: その次の行に書かれてる git -C... を実行する必要があるみたいです https://gotohayato.com/content/528/
AbeTakashi

2021/05/30 10:58 編集

brew update を先にすればいいんじゃないですかね?
guest

回答1

0

ベストアンサー

こんばんは。

問題文読ませていただきました。

brew updateするために、git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallowを実行してほしいみたいですね。

エラー文の中では以下の部分になります。ご確認のほど、よろしくお願いいたします。????‍♂️

To brew update, first run:
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
This command may take a few minutes to run due to the large size of the repository.
This restriction has been made on GitHub's request because updating shallow
clones is an extremely expensive operation due to the tree layout and traffic of
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you
automatically to avoid repeatedly performing an expensive unshallow operation in
CI systems (which should instead be fixed to not use shallow clones). Sorry for
the inconvenience!

投稿2021/05/30 10:56

退会済みユーザー

退会済みユーザー

総合スコア0

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

kotaosu

2021/05/30 15:26 編集

回答のほうを読ませていただきました。 少し先に進むことはできました!しかし、まだ解決には至っていません。 現在自分と同じ状態になって解決した人の情報を集めています。 以下のURLが非常に私と近い状態なのですが、~/.bash_profileを編集しても未だにバージョンに変化はありません。 https://qiita.com/TheHiro/ite 以下により詳細な内容を記載します。 ./bash_profileの中身 # Setting PATH for Python 3.9 # The original version is saved in .bash_profile.pysave export PATH # Setting PATH for Python 3.9 # The original version is saved in .bash_profile.pysave export PATH export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)" 各実行内容 MacBook-Pro:~ kotaosu$ pyenv init # (The below instructions are intended for common # shell setups. See the README for more guidance # if they don't apply and/or don't work for you.) # Add pyenv executable to PATH and # enable shims by adding the following # to ~/.profile: export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init --path)" # If your ~/.profile sources ~/.bashrc, # the lines need to be inserted before the part # that does that. See the README for another option. # If you have ~/.bash_profile, make sure that it # also executes the above lines -- e.g. by # copying them there or by sourcing ~/.profile # Load pyenv into the shell by adding # the following to ~/.bashrc: eval "$(pyenv init -)" # Make sure to restart your entire logon session # for changes to profile files to take effect. source ~/.bash_profile WARNING: `pyenv init -` no longer sets PATH. Run `pyenv init` to see the necessary changes to make to your configuration.\ MacBook-Pro:~ kotaosu$ python --version Python 2.7.16 MacBook-Pro:~ kotaosu$ pyenv versions system * 3.9.5 (set by /Users/kotaosu/.python-version)
AbeTakashi

2021/05/30 16:23

Mac OSのバージョン情報を質問文に追記した方がいいでしょう。Mac OSはMojaveまでデフォルトのシェルはbash、Catalina以降はzshになっています。何かしらのサイトを参考にされているかもしれませんが、MojaveまでとCatalina以降は方法が変わりますので、参考にされる際はその点を注意してください。質問文の冒頭で"The default interactive shell is now zsh."となっているので、それが正しければbash_profileを書き換えても何も起きないと思います。
kotaosu

2021/05/30 16:46

ご指摘ありがとうございます。 Mac OS はBig Sur11.4です。 シェルについてですが、変更しながら試していたため、このような伝え方になってしまいました。 申し訳ありません。 zshでもbashでもデフォルトのシェルを変更して試しましたが、解決には至りませんでした・・・
AbeTakashi

2021/05/30 16:54

なるほど、そういう事情は分からなかったので、ぜひ質問文に分かりやすいように追記されるといいと思います。 pyenvのバージョンは3.9.5に切り替わっているようなので、あとは eval "$(pyenv init -)" が効いてないってことなんですかね? ためしに eval "$(pyenv init -)" を手打ちしてから python --version としたらどうなりますか? そんな感じで切り分けていくしか無さそうです。
kotaosu

2021/05/31 13:56

現在使用しているシェルはzshです。 2つめのURLを参照しながら、進めたところ、2番目のコマンド$makeでターゲットが指定されておらずmakefileが見つからないと表示されました。 次にHomebrewを先日インストールしていたので、問題がないか確認するため$brew doctorを実行したところ、以下の結果が表示されました。 kotaosu@MacBook-Pro ~ % brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore this. Thanks! Warning: You have the following deprecated, cask taps tapped: caskroom/cask Untap them with `brew untap`. Warning: "config" scripts exist outside your system or Homebrew directories. `./configure` scripts often look for *-config scripts to determine if software packages are installed, and which additional flags to use when compiling and linking. Having additional scripts in your path can confuse software installed via Homebrew if the config script overrides a system or Homebrew-provided script of the same name. We found the following "config" scripts: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3-config /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8-config Warning: Broken symlinks were found. Remove them with `brew cleanup`: /usr/local/bin/apm /usr/local/bin/atom /usr/local/share/man/man1/brew-cask.1 /usr/local/share/zsh/site-functions/_brew_cask
退会済みユーザー

退会済みユーザー

2021/06/01 01:03

なるほど、brew doctorでwarningが出ているのはよくありませんが、一旦無視しましょう。 記事の続きでbrew updateから続けるとどのようになりますでしょうか?
kotaosu

2021/06/01 02:29

brew updateを実行しました。表示された結果を読むとアップデートされたみたいです。 kotaosu@MacBook-Pro ~ % brew update ==> Homebrew is run entirely by unpaid volunteers. Please consider donating: https://github.com/Homebrew/brew#donations Updated Homebrew from eeef3f4fe to f9dd12ef5. Updated 3 taps (homebrew/core, homebrew/cask and caskroom/cask). ==> New Formulae code-minimap principalmapper pywhat simde ==> Updated Formulae alsa-lib detekt libxfixes pmd apache-arrow dialog liquidprompt pnpm apache-arrow-glib dua-cli logtalk pspg black gallery-dl micronaut redpen bowtie2 gnumeric mingw-w64 rest-shell bpytop goreleaser mrboom ringojs cglm igraph net-snmp swagger-codegen clojure imagemagick@6 netlify-cli swagger2markup-cli collectd janet opa terraform-docs commandbox kahip openjdk trojan-go contentful-cli ki pandoc dafny ktlint pdm dependency-check libxdg-basedir pipx ==> Updated Casks adobe-creative-cloud mps adobe-creative-cloud nextcloud appcode nextcloud appcode onyx betterzip onyx betterzip opencore-configurator bisq opencore-configurator bisq owncloud chromium owncloud chromium perforce clion perforce clion phpstorm cmake phpstorm cmake postico coconutbattery postico coconutbattery progressive-downloader datagrip progressive-downloader datagrip pycharm datweatherdoe pycharm datweatherdoe pycharm-ce dbeaver-community pycharm-ce dbeaver-community pycharm-edu deepl pycharm-edu deepl pycharm-with-anaconda-plugin displays pycharm-with-anaconda-plugin displays quickhash eul quickhash eul rider gas-mask rider gas-mask rubymine goland rubymine goland sejda-pdf google-backup-and-sync sejda-pdf google-backup-and-sync session-manager-plugin hstracker session-manager-plugin hstracker sketchup igdm sketchup igdm stats imazing stats imazing switchhosts intellij-idea switchhosts intellij-idea teamviewer intellij-idea-ce teamviewer intellij-idea-ce termius jameica termius jameica ui-browser jetbrains-space ui-browser jetbrains-space utm jetbrains-toolbox utm jetbrains-toolbox videofusion katalon-studio videofusion katalon-studio webex logseq webex logseq webstorm lunar webstorm lunar xmind-zen lyricsx xmind-zen lyricsx yinxiangbiji miniforge yinxiangbiji miniforge youtrack-workflow mochi youtrack-workflow mochi youtube-downloader mps youtube-downloader ==> Deleted Casks appstudio hex resxtreme appstudio hex resxtreme auristor-client iograph rss auristor-client iograph rss cricut-design-space itrash wraparound cricut-design-space itrash wraparound filedrop opera-mail filedrop opera-mail ==> Homebrew was updated to version 3.1.9 The changelog can be found at: https://github.com/Homebrew/brew/releases/tag/3.1.9
退会済みユーザー

退会済みユーザー

2021/06/01 02:44

お、いい感じですね。 記事に従って、brew update以降も試してみてください。上手くいきそうです〜
kotaosu

2021/06/01 03:10

記事の手順に従って実行したところ、zshprofileが存在しないと表示されました・・・ kotaosu@MacBook-Pro ~ % brew install pyenv Warning: pyenv 2.0.0 is already installed and up-to-date. To reinstall 2.0.0, run: brew reinstall pyenv kotaosu@MacBook-Pro ~ % open ~/.zshprofile The file /Users/kotaosu/.zshprofile does not exist.
退会済みユーザー

退会済みユーザー

2021/06/01 03:42

ターミナルを開く。 vi ~/.zprofile を実行。(vimを開く。vimについて : https://knowledge.sakura.ad.jp/21687/) vimにてi(insertモード)を押し、記事のように、zshprofileファイル内へコードを転記。 vimを終了するために、:wq(コードを保存して終了)を実行。 ターミナルにて exit を実行してターミナルを閉じる。 でお願いいたします。????‍♂️
kotaosu

2021/06/01 04:03

zprofile zshrcをviコマンドで編集し、手順に沿って実行しましたが、最終的にpythonのバージョンは2.7.16のままでした・・・ 新しいpythonは別のパスにあるのかもしれない・・・???? kotaosu@MacBook-Pro ~ % vi ~/.zprofile kotaosu@MacBook-Pro ~ % vi ~/.zshrc kotaosu@MacBook-Pro ~ % vi ~/.zshrc kotaosu@MacBook-Pro ~ % pyenv --help Usage: pyenv <command> [<args>] Some useful pyenv commands are: --version Display the version of pyenv commands List all available pyenv commands exec Run an executable with the selected Python version global Set or show the global Python version(s) help Display help for a command hooks List hook scripts for a given pyenv command init Configure the shell environment for pyenv install Install a Python version using python-build local Set or show the local application-specific Python version(s) prefix Display prefix for a Python version rehash Rehash pyenv shims (run this after installing executables) root Display the root directory where versions and shims are kept shell Set or show the shell-specific Python version shims List existing pyenv shims uninstall Uninstall a specific Python version version Show the current Python version(s) and its origin version-file Detect the file that sets the current pyenv version version-name Show the current Python version version-origin Explain how the current Python version is set versions List all Python versions available to pyenv whence List all Python versions that contain the given executable which Display the full path to an executable See `pyenv help <command>' for information on a specific command. For full documentation, see: https://github.com/pyenv/pyenv#readme kotaosu@MacBook-Pro ~ % pyenv install --list Available versions: 〜一覧が表示されていたため省略〜 kotaosu@MacBook-Pro ~ % pyenv install --list | egrep '^[ ]+[3].[89.]+$' 3.8.8 3.8.9 kotaosu@MacBook-Pro ~ % pyenv install --list | egrep '^[ ]+[3].[0-9.]+$' | grep ' 3.8' | tail -n 1 3.8.9 3.8.10 zsh: command not found: 3.8.9 kotaosu@MacBook-Pro ~ % pyenv install 3.8.10 python-build: use openssl@1.1 from homebrew python-build: use readline from homebrew Downloading Python-3.8.10.tar.xz... -> https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tar.xz Installing Python-3.8.10... python-build: use readline from homebrew python-build: use zlib from xcode sdk Installed Python-3.8.10 to /Users/kotaosu/.pyenv/versions/3.8.10 kotaosu@MacBook-Pro ~ % pyenv --versions pyenv: no such command `--versions' kotaosu@MacBook-Pro ~ % pyenv -V pyenv: no such command `-V' kotaosu@MacBook-Pro ~ % pyenv global 3.9.5 kotaosu@MacBook-Pro ~ % pyenv versions system 3.8.10 * 3.9.5 (set by /Users/kotaosu/.python-version) kotaosu@MacBook-Pro ~ % python --versions Unknown option: -- usage: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python [option] ... [-c cmd | -m mod | file | -] [arg] ... Try `python -h' for more information. kotaosu@MacBook-Pro ~ % python --version Python 2.7.16
退会済みユーザー

退会済みユーザー

2021/06/01 04:41

~/.zshprofile, ~/.zshrcへ記事に記載の内容は貼り付け、保存した認識で問題ありませんか?
kotaosu

2021/06/01 06:13 編集

~/.zprofile, ~/.zshrcのそれぞれの編集後の中身を以下に記載します。 ~/.zprofile # Setting PATH for Python 3.8 # The original version is saved in .zprofile.pysave PATH="/Library/Frameworks/Python.framework/Versions/3.8/bin:${PATH}" export PATH # set PIPENV behaviour to always place .venv inside the project export PIPENV_VENV_IN_PROJECT=true if [ `uname` = "Darwin" ]; then # set op homebrew if [ -e /opt/homebrew ]; then HOMEBREW_ROOT=/opt/homebrew else HOMEBREW_ROOT=/usr/local fi export HOMEBREW_ROOT eval $(${HOMEBREW_ROOT}/bin/brew shellenv) # set up pyenv export PYENV_ROOT=${HOMEBREW_ROOT}/var/pyenv if command -v pyenv 1>/dev/null 2>&1; then "~/.zprofile" 28L, 682B ~/.zshrc if [ `uname` = "Darwin" ]; then if command -v pyenv 1>/dev/null 2>&1; then eval "$(pyenv init -)" fi fi
kotaosu

2021/06/01 05:45

2つめの返答を確認しました。 pythonコマンドが見ている先のパスを確認するとusr/bin/pythonとなっていました。 パスを変更するにはどうしたらよろしいでしょうか。
technocore

2021/06/01 06:03

> ~/.zshprofile, ~/.zshrcのそれぞれの .zprofile です。
kotaosu

2021/06/01 06:12

technocore様 大変申し訳ありません。 記載した内容が間違っていました。 ~/.zshprofileを~/.zprofileに修正しました。
退会済みユーザー

退会済みユーザー

2021/06/01 09:22

eval "$(pyenv init -)" して which python するとパスが変わりませんか〜?
kotaosu

2021/06/01 13:30

eval "$(pyenv init -)"を実行した時、パスを設定できないようです。 WARNING: `pyenv init -` no longer sets PATH. Run `pyenv init` to see the necessary changes to make to your configuration. kotaosu@MacBook-Pro ~ % eval "$(pyenv init -)" WARNING: `pyenv init -` no longer sets PATH. Run `pyenv init` to see the necessary changes to make to your configuration. kotaosu@MacBook-Pro ~ % eval "$(pyenv init -)" WARNING: `pyenv init -` no longer sets PATH. Run `pyenv init` to see the necessary changes to make to your configuration.
退会済みユーザー

退会済みユーザー

2021/06/02 01:30 編集

なるほど。。 ・vim ~/.zshrc を実行。 ・.zshrcの内容を全て削除する。 ・こちらの記事の「素の pyenv を利用している場合」の内容へ書き換える。(https://zenn.dev/antyuntyun/articles/pyenv_warning_resolve ) ・内容を保存する。 ・ターミナルを再起動する。 ・python --version を実行する。 でお願いいたします。????‍♂️
kotaosu

2021/06/02 01:08

URLが404で閲覧できないようです・・・
退会済みユーザー

退会済みユーザー

2021/06/02 01:30

失礼しました。再度参照ください。
kotaosu

2021/06/02 02:39

pythonのバージョンが・・・とうとう3.9.5になりました!!! 長い間私の質問にお付き合いいただきありがとうございました!!
退会済みユーザー

退会済みユーザー

2021/06/02 02:42

おー、うまくいってよかった!! 諦めずに最後までナイストライです!! いえいえ。 また困ったこととかありましたら、気軽にご相談ください。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問