GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — #887 · realpython/python-guide@57b28f8

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • docs/starting/install
    • osx.rst
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docs/starting/install/osx.rst‎

Copy file name to clipboardExpand all lines: docs/starting/install/osx.rst
+3-5Lines changed: 3 additions & 5 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,19 @@ line at the bottom of your :file:`~/.profile` file
6363

6464
.. code-block:: console
6565
66-
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
66+
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
6767
6868
Now, we can install Python 2.7:
6969

7070
.. code-block:: console
7171
7272
$ brew install python@2
7373
74-
or Python 3:
74+
Because ``python@2`` is a "keg", we need to update our ``PATH`` again, to point at our new installation:
7575

7676
.. code-block:: console
7777
78-
$ brew install python
79-
80-
This will take a minute or two.
78+
export PATH="/usr/local/opt/python@2/libexec/bin:$PATH"
8179
8280
Homebrew names the executable ``python2`` so that you can still run the system Python via the executable ``python``.
8381

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.