0% found this document useful (0 votes)
46 views7 pages

Terminal Saved Output

The document outlines the installation process of Homebrew and Python 3.13 on a MacBook Pro. It includes steps for checking sudo access, installing necessary directories, and downloading dependencies. The installation of Python 3.13 encounters conflicts with existing files, suggesting the user remove or overwrite them to complete the installation.

Uploaded by

bdssinhtailoc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views7 pages

Terminal Saved Output

The document outlines the installation process of Homebrew and Python 3.13 on a MacBook Pro. It includes steps for checking sudo access, installing necessary directories, and downloading dependencies. The installation of Python 3.13 encounters conflicts with existing files, suggesting the user remove or overwrite them to complete the installation.

Uploaded by

bdssinhtailoc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 7

Last login: Wed Jul 30 16:32:53 on console

kvg@Liems-MacBook-Pro ~ % /bin/bash -c "$(curl -fsSL


https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
==> Checking for `sudo` access (which may request your password)...
Password:
Sorry, try again.
Password:
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following existing directories will be made group writable:
/usr/local/bin
==> The following existing directories will have their owner set to kvg:
/usr/local/bin
==> The following existing directories will have their group set to admin:
/usr/local/bin
==> The following new directories will be created:
/usr/local/etc
/usr/local/include
/usr/local/lib
/usr/local/sbin
/usr/local/share
/usr/local/var
/usr/local/opt
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var/homebrew
/usr/local/var/homebrew/linked
/usr/local/Cellar
/usr/local/Caskroom
/usr/local/Frameworks
==> The Xcode Command Line Tools will be installed.

Press RETURN/ENTER to continue or any other key to abort:


==> /usr/bin/sudo /bin/chmod u+rwx /usr/local/bin
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/bin
==> /usr/bin/sudo /usr/sbin/chown kvg /usr/local/bin
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/bin
==> /usr/bin/sudo /bin/mkdir -p /usr/local/etc /usr/local/include /usr/local/lib
/usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt /usr/local/share/zsh
/usr/local/share/zsh/site-functions /usr/local/var/homebrew
/usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom
/usr/local/Frameworks
==> /usr/bin/sudo /bin/chmod ug=rwx /usr/local/etc /usr/local/include
/usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt
/usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew
/usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom
/usr/local/Frameworks
==> /usr/bin/sudo /bin/chmod go-w /usr/local/share/zsh /usr/local/share/zsh/site-
functions
==> /usr/bin/sudo /usr/sbin/chown kvg /usr/local/etc /usr/local/include
/usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt
/usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew
/usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom
/usr/local/Frameworks
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/etc /usr/local/include
/usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt
/usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew
/usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom
/usr/local/Frameworks
==> /usr/bin/sudo /bin/mkdir -p /usr/local/Homebrew
==> /usr/bin/sudo /usr/sbin/chown -R kvg:admin /usr/local/Homebrew
==> /usr/bin/sudo /bin/mkdir -p /Users/kvg/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/kvg/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown -R kvg /Users/kvg/Library/Caches/Homebrew
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch
/tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
==> Installing Command Line Tools for Xcode-16.4
==> /usr/bin/sudo /usr/sbin/softwareupdate -i Command\ Line\ Tools\ for\ Xcode-16.4
Software Update Tool

Finding available software

Downloading Command Line Tools for Xcode


Downloaded Command Line Tools for Xcode
Installing Command Line Tools for Xcode
Done with Command Line Tools for Xcode
Done.
==> /usr/bin/sudo /usr/bin/xcode-select --switch
/Library/Developer/CommandLineTools
==> /usr/bin/sudo /bin/rm -f
/tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
==> Downloading and installing Homebrew...
remote: Enumerating objects: 306259, done.
remote: Counting objects: 100% (339/339), done.
remote: Compressing objects: 100% (207/207), done.
remote: Total 306259 (delta 228), reused 183 (delta 132), pack-reused 305920 (from
5)
remote: Enumerating objects: 55, done.
remote: Counting objects: 100% (33/33), done.
remote: Total 55 (delta 33), reused 33 (delta 33), pack-reused 22 (from 1)
==> Updating Homebrew...
==> Downloading
https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:0c78b38f22fb9b
42df6918db00e6f5a80d5b35164f910ffe4c89159326ae98cf
######################################################################### 100.0%
==> Pouring portable-ruby-3.4.5.el_capitan.bottle.tar.gz
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:


https://github.com/Homebrew/brew#donations

==> Next steps:


- Run these commands in your terminal to add Homebrew to your PATH:
echo >> /Users/kvg/.zprofile
echo 'eval "$(/usr/local/bin/brew shellenv)"' >> /Users/kvg/.zprofile
eval "$(/usr/local/bin/brew shellenv)"
- Run brew help to get started
- Further documentation:
https://docs.brew.sh

kvg@Liems-MacBook-Pro ~ % brew install python@3.13.5


==> Downloading https://formulae.brew.sh/api/formula.jws.json
==> Downloading https://formulae.brew.sh/api/cask.jws.json
Warning: No available formula with the name "python@3.13.5". Did you mean
python@3.13, python@3.12, python@3.11 or python@3.10?
==> Searching for similarly named formulae and casks...
==> Formulae
python@3.13 python@3.12 python@3.11 python@3.10

To install python@3.13, run:


brew install python@3.13
kvg@Liems-MacBook-Pro ~ % brew install python@3.13
==> Fetching downloads for: python@3.13
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.13/manifests/3.13.5-1
######################################################################### 100.0%
==> Fetching dependencies for python@3.13: mpdecimal, ca-certificates, openssl@3,
readline, sqlite and xz
==> Downloading https://ghcr.io/v2/homebrew/core/mpdecimal/manifests/4.0.1
######################################################################### 100.0%
==> Fetching mpdecimal
==> Downloading https://ghcr.io/v2/homebrew/core/mpdecimal/blobs/sha256:2d5d6956
######################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manifests/2025-
######################################################################### 100.0%
==> Fetching ca-certificates
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/blobs/sha256:84
######################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/3/manifests/3.5.1
######################################################################### 100.0%
==> Fetching openssl@3
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/3/blobs/sha256:752c0242
######################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/readline/manifests/8.3.1
######################################################################### 100.0%
==> Fetching readline
==> Downloading https://ghcr.io/v2/homebrew/core/readline/blobs/sha256:85d56c689
######################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/manifests/3.50.3
######################################################################### 100.0%
==> Fetching sqlite
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:efdac2a067d
######################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/xz/manifests/5.8.1
######################################################################### 100.0%
==> Fetching xz
==> Downloading https://ghcr.io/v2/homebrew/core/xz/blobs/sha256:6558e19cb2f1389
######################################################################### 100.0%
==> Fetching python@3.13
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.13/blobs/sha256:60d51c
######################################################################### 100.0%
==> Installing dependencies for python@3.13: mpdecimal, ca-certificates, openssl@3,
readline, sqlite and xz
==> Installing python@3.13 dependency: mpdecimal
==> Downloading https://ghcr.io/v2/homebrew/core/mpdecimal/manifests/4.0.1
Already downloaded:
/Users/kvg/Library/Caches/Homebrew/downloads/dbbf60721dc54b6215f6c0988496331d4110a2
a358da867a1129cd84b8166b31--mpdecimal-4.0.1.bottle_manifest.json
==> Pouring mpdecimal--4.0.1.sequoia.bottle.tar.gz
🍺 /usr/local/Cellar/mpdecimal/4.0.1: 22 files, 558.5KB
==> Installing python@3.13 dependency: ca-certificates
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manifests/2025-
Already downloaded:
/Users/kvg/Library/Caches/Homebrew/downloads/1b8ec93adfe410583ff46788783b030707eec1
898c7ded356e25694e4c29aa32--ca-certificates-2025-07-15.bottle_manifest.json
==> Pouring ca-certificates--2025-07-15.all.bottle.tar.gz
==> Regenerating CA certificate bundle from keychain, this may take a while...
🍺 /usr/local/Cellar/ca-certificates/2025-07-15: 4 files, 225.7KB
==> Installing python@3.13 dependency: openssl@3
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/3/manifests/3.5.1
Already downloaded:
/Users/kvg/Library/Caches/Homebrew/downloads/9d8c8da104539ae29f198f366fe5794ac377d9
6a92458ae62557e3f83b03a351--openssl@3-3.5.1.bottle_manifest.json
==> Pouring openssl@3--3.5.1.sequoia.bottle.tar.gz
🍺 /usr/local/Cellar/openssl@3/3.5.1: 7,563 files, 35.9MB
==> Installing python@3.13 dependency: readline
==> Downloading https://ghcr.io/v2/homebrew/core/readline/manifests/8.3.1
Already downloaded:
/Users/kvg/Library/Caches/Homebrew/downloads/52cb2bb3f0d9e66789968b865501c41ed80dc3
03eb488939476b309f1d350dc5--readline-8.3.1.bottle_manifest.json
==> Pouring readline--8.3.1.sequoia.bottle.tar.gz
🍺 /usr/local/Cellar/readline/8.3.1: 56 files, 2.4MB
==> Installing python@3.13 dependency: sqlite
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/manifests/3.50.3
Already downloaded:
/Users/kvg/Library/Caches/Homebrew/downloads/caae514078baa0b320054492023cd6f1f3da0e
6733ccb13fc00ae274821dc973--sqlite-3.50.3.bottle_manifest.json
==> Pouring sqlite--3.50.3.sequoia.bottle.tar.gz
🍺 /usr/local/Cellar/sqlite/3.50.3: 13 files, 4.8MB
==> Installing python@3.13 dependency: xz
==> Downloading https://ghcr.io/v2/homebrew/core/xz/manifests/5.8.1
Already downloaded:
/Users/kvg/Library/Caches/Homebrew/downloads/86a115cc1d43ff8a480fd907f812e70a403e16
75d8a7223f61bbb08cbd2adc27--xz-5.8.1.bottle_manifest.json
==> Pouring xz--5.8.1.sequoia.bottle.tar.gz
🍺 /usr/local/Cellar/xz/5.8.1: 96 files, 2.3MB
==> Installing python@3.13
==> Pouring python@3.13--3.13.5.sequoia.bottle.1.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/idle3
Target /usr/local/bin/idle3
already exists. You may want to remove it:
rm '/usr/local/bin/idle3'

To force the link and overwrite all conflicting files:


brew link --overwrite python@3.13

To list all files that would be deleted:


brew link --overwrite python@3.13 --dry-run

Possible conflicting files are:


/usr/local/bin/idle3 ->
/Library/Frameworks/Python.framework/Versions/3.13/bin/idle3
/usr/local/bin/idle3.13 ->
/Library/Frameworks/Python.framework/Versions/3.13/bin/idle3.13
/usr/local/bin/pip3 -> /Library/Frameworks/Python.framework/Versions/3.13/bin/pip3
/usr/local/bin/pip3.13 ->
/Library/Frameworks/Python.framework/Versions/3.13/bin/pip3.13
/usr/local/bin/pydoc3 ->
/Library/Frameworks/Python.framework/Versions/3.13/bin/pydoc3
/usr/local/bin/pydoc3.13 ->
/Library/Frameworks/Python.framework/Versions/3.13/bin/pydoc3.13
/usr/local/bin/python3 ->
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3
/usr/local/bin/python3-config ->
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3-config
/usr/local/bin/python3.13 ->
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3.13
/usr/local/bin/python3.13-config ->
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3.13-config
==> Caveats
Python is installed as
/usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to


`python3`, `python3-config`, `pip3` etc., respectively, are installed into
/usr/local/opt/python@3.13/libexec/bin

See: https://docs.brew.sh/Homebrew-and-Python
==> Summary
🍺 /usr/local/Cellar/python@3.13/3.13.5: 3,603 files, 62.8MB
==> Running `brew cleanup python@3.13`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> No outdated dependents to upgrade!
==> Caveats
==> python@3.13
Python is installed as
/usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to


`python3`, `python3-config`, `pip3` etc., respectively, are installed into
/usr/local/opt/python@3.13/libexec/bin

See: https://docs.brew.sh/Homebrew-and-Python
kvg@Liems-MacBook-Pro ~ % python3 --version
Python 3.13.5
kvg@Liems-MacBook-Pro ~ % pip install beautifulsoup4 pandas openpyxl

zsh: command not found: pip


kvg@Liems-MacBook-Pro ~ % pip install beautifulsoup4
pip install pandas
pip install openpyxl

zsh: command not found: pip


zsh: command not found: pip
zsh: command not found: pip
kvg@Liems-MacBook-Pro ~ % python3 --version
Python 3.13.5
kvg@Liems-MacBook-Pro ~ % pip3 install beautifulsoup4
Collecting beautifulsoup4
Downloading beautifulsoup4-4.13.4-py3-none-any.whl.metadata (3.8 kB)
Collecting soupsieve>1.2 (from beautifulsoup4)
Downloading soupsieve-2.7-py3-none-any.whl.metadata (4.6 kB)
Collecting typing-extensions>=4.0.0 (from beautifulsoup4)
Downloading typing_extensions-4.14.1-py3-none-any.whl.metadata (3.0 kB)
Downloading beautifulsoup4-4.13.4-py3-none-any.whl (187 kB)
Downloading soupsieve-2.7-py3-none-any.whl (36 kB)
Downloading typing_extensions-4.14.1-py3-none-any.whl (43 kB)
Installing collected packages: typing-extensions, soupsieve, beautifulsoup4
Successfully installed beautifulsoup4-4.13.4 soupsieve-2.7 typing-extensions-4.14.1

[notice] A new release of pip is available: 25.1.1 -> 25.2


[notice] To update, run: pip3 install --upgrade pip
kvg@Liems-MacBook-Pro ~ % pip3 install pandas
Collecting pandas
Downloading pandas-2.3.1-cp313-cp313-macosx_10_13_x86_64.whl.metadata (91 kB)
Collecting numpy>=1.26.0 (from pandas)
Downloading numpy-2.3.2-cp313-cp313-macosx_14_0_x86_64.whl.metadata (62 kB)
Collecting python-dateutil>=2.8.2 (from pandas)
Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting pytz>=2020.1 (from pandas)
Downloading pytz-2025.2-py2.py3-none-any.whl.metadata (22 kB)
Collecting tzdata>=2022.7 (from pandas)
Downloading tzdata-2025.2-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting six>=1.5 (from python-dateutil>=2.8.2->pandas)
Downloading six-1.17.0-py2.py3-none-any.whl.metadata (1.7 kB)
Downloading pandas-2.3.1-cp313-cp313-macosx_10_13_x86_64.whl (11.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.5/11.5 MB 29.3 MB/s eta 0:00:00
Downloading numpy-2.3.2-cp313-cp313-macosx_14_0_x86_64.whl (6.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.6/6.6 MB 33.6 MB/s eta 0:00:00
Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Downloading pytz-2025.2-py2.py3-none-any.whl (509 kB)
Downloading six-1.17.0-py2.py3-none-any.whl (11 kB)
Downloading tzdata-2025.2-py2.py3-none-any.whl (347 kB)
Installing collected packages: pytz, tzdata, six, numpy, python-dateutil, pandas
Successfully installed numpy-2.3.2 pandas-2.3.1 python-dateutil-2.9.0.post0 pytz-
2025.2 six-1.17.0 tzdata-2025.2

[notice] A new release of pip is available: 25.1.1 -> 25.2


[notice] To update, run: pip3 install --upgrade pip
kvg@Liems-MacBook-Pro ~ % pip3 install openpyxl
Collecting openpyxl
Downloading openpyxl-3.1.5-py2.py3-none-any.whl.metadata (2.5 kB)
Collecting et-xmlfile (from openpyxl)
Downloading et_xmlfile-2.0.0-py3-none-any.whl.metadata (2.7 kB)
Downloading openpyxl-3.1.5-py2.py3-none-any.whl (250 kB)
Downloading et_xmlfile-2.0.0-py3-none-any.whl (18 kB)
Installing collected packages: et-xmlfile, openpyxl
Successfully installed et-xmlfile-2.0.0 openpyxl-3.1.5

[notice] A new release of pip is available: 25.1.1 -> 25.2


[notice] To update, run: pip3 install --upgrade pip
kvg@Liems-MacBook-Pro ~ % cd ~/desktop
kvg@Liems-MacBook-Pro desktop % mkdir DuLieuNhaBan
kvg@Liems-MacBook-Pro desktop % cd DuLieuNhaBan
kvg@Liems-MacBook-Pro DuLieuNhaBan % bash

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.
bash-3.2$ nano tach_du_lieu.py
UW PICO 5.09 File: tach_du_lieu.py Modified

if len(row) >= 8:
while len(row) < 9:
row.append("")
all_rows.append(row[:9])

columns = ["ĐỊA CHỈ", "ĐƯỜNG", "PHƯỜNG", "QUẬN", "DIỆN TÍCH", "KẾT CẤU", "GIÁ",$
df = pd.DataFrame(all_rows, columns=columns)
df.to_excel("du_lieu_nha_ban_goldai.xlsx", index=False)

print("✅ Xuất file Excel thành công!")

^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text^T To Spell

You might also like