Python Forum
Installing Python3 on MacOS using brew
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing Python3 on MacOS using brew
#1
Hello, I am trying to install python3
I have followed this guide: https://programwithus.com/learn/python/i...ython3-mac

After using the following command:
brew install python3
The result is as following:
Python has been installed as
  /usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /usr/local/opt/[email protected]/libexec/bin

You can install Python packages with
  pip3 install <package>
They will install into the site-package directory
  /usr/local/lib/python3.9/site-packages

tkinter is no longer included with this formula, but it is available separately:
  brew install [email protected]

See: https://docs.brew.sh/Homebrew-and-Python
Lukass-Air:~ Lukas$ 
Lukass-Air:~ Lukas$ python --version
-bash: /usr/local/bin/python: No such file or directory
Lukass-Air:~ Lukas$ python3 --version
-bash: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3: No such file or directory
Lukass-Air:~ Lukas$ pip3 install requests
-bash: /Library/Frameworks/Python.framework/Versions/3.9/bin/pip3: No such file or directory
Lukass-Air:~ Lukas$ 
As you can see from the command output, it says that python3 has been installed as /usr/local/bin/python3 . However, I am not able to reach python from the terminal. I try with commands:

python --version
-bash: /usr/local/bin/python: No such file or directory
and
python3 --version
-bash: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3: No such file or directory
Also, I have tried to install requests python module using following command:

pip3 install requests
but failed with the following result
-bash: /Library/Frameworks/Python.framework/Versions/3.9/bin/pip3: No such file or directory
Can someone help me understand what is wrong and how do I setup PATHS correctly?
Reply


Messages In This Thread
Installing Python3 on MacOS using brew - by zazas321 - May-27-2021, 10:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python installation for old MacOS Yonix 1 451 Sep-21-2023, 03:32 PM
Last Post: menator01
  Why is IDLE not opening on a MacOS Montery 12.6 and using Python 3.10.7? Merlin385 7 1,571 Oct-08-2022, 08:36 PM
Last Post: Merlin385
Lightbulb MacOS can't make it Archi 1 1,159 May-29-2022, 07:38 AM
Last Post: Larz60+
  Text widget -macOS apffal 1 1,682 Sep-23-2021, 10:12 PM
Last Post: apffal
  MacOS BigSur Python3 - dyld: Library not loaded: trillionanswers 1 4,145 Mar-02-2021, 11:00 PM
Last Post: nilamo
  Installing python3-devel from source on centos6 judith 0 2,131 Dec-04-2020, 05:33 AM
Last Post: judith
  Error after installing Python3.8.2: "No module named 'apt_pkg'" Chromie 3 3,803 Mar-09-2020, 08:20 PM
Last Post: micseydel
  Building from source on MacOS: installing certificates ardim 1 1,913 Feb-09-2020, 10:16 PM
Last Post: ardim
  Gnuradio python3 is not compatible python3 xmlrpc library How Can I Fix İt ? muratoznnnn 3 4,803 Nov-07-2019, 05:47 PM
Last Post: DeaD_EyE
  can't open excel with my macos dcc 0 2,323 Oct-30-2019, 04:18 AM
Last Post: dcc

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020