Describing making Python 3 the default `python` under Homebrew
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 35/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- python
調査の方向性
OS X のインストールガイドで、issue に示されている Homebrew と Python 3 のセクションを検索し、続いて Homebrew の「Homebrew と Python」ページを読んで現在の動作を確認します。Python 3 と Python 2 の手順を更新して PATH の扱いを反映し、Homebrew のドキュメントへのリンクを追加します。macOS のバージョンによる違いと python コマンドのデフォルトの動作が正確になっていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
So, about this section in the OS X installation guides:
That opt/python/libexec behavior is not actually about 10.12 Sierra vs. newer versions of macOS. Homebrew does not make the unqualified python command be Python 3 on any version of macOS. If this behavior was different in the past, that was due to a different Homebrew version, not a different macOS version. (Homebrew's policy is to not shadow system-provided components in a way that might break things.)
Maybe this section should be updated to something like:
Once you've installed Homebrew, insert the Homebrew directory at the top
of your :envvar:`PATH` environment variable if you are running 10.12 Sierra or older.
You can do this by adding the following line at the bottom of your :file:`~/.profile` file:
.. code-block:: console
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
Now, we can install Python 3:
.. code-block:: console
$ brew install python
Then, to make your default `python` command point to Python 3:
.. code-block:: console
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
And the section in the Python 2 installation about doing PATH="/usr/local/opt/python@2/libexec/bin:$PATH" is no longer necessary: the Homebrew python@2 formula now provides a python command that is in /usr/local/bin by default.
Might also want to provide a link to Homebrew's Homebrew and Python page, which goes in to more detail.
- 主要言語
- Batchfile
- スター
- 29.8k
- フォーク
- 5.9k
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
realpython/python-guide のほかの issue
-
Page 404 error オープン
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
realpython/python-guide#1104 · コメント 2 件 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 62/100
realpython/python-guide#327 ·
-
PyZMQ improvements オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
realpython/python-guide#326 · コメント 5 件 ·
-
@alex オープン
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
realpython/python-guide#1194 ·
-
Development Team SAP オープン
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
realpython/python-guide#1192 ·
realpython/python-guide の issue をすべて見る
似ている issue
-
Link Checker Report オープンautomated issue report
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
felladrin/uo-is-not-dead#176 · コメント 1 件 ·
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
Qiskit/qiskit-addon-sqd#376 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Seeed-Studio/wiki-documents#5655 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
MystenLabs/sui#28056 · コメント 1 件 ·