Python Forum
Installing Homebrew on my mac; non computer-savvy person
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing Homebrew on my mac; non computer-savvy person
#1
I am working through a book to learn python on version 2.7. I need to download homebrew as part of a project in the book. As required, from homebrew's website, I paste the following in terminal...

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
...but I get the following error:

curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443


I have been researching, trying to find answers to this for a while now. From what I have read, it seems my problem is I can not connect to raw.gihubusercontent.com. To check, when I type that url into my browser, it says:

"This site can’t be reached raw.githubusercontent.com unexpectedly closed the connection."

From my research, it seems like I need to download a proxy, as that is what the following link implied: link 1. But it provides info on how to do it when working behind a proxy, from what I understand.

According to this website I am not behind a proxy, as some threads suggested this problem could stem from. So, how do I fix this problem and install homebrew? I am not the most computer-savvy person, so if I am missing information here, please let me know, I will be checking this thread around the clock. THANK YOU IN ADVANCE!!! :)

If it matters: I am on macOS HighSierra version 10.13.2, and XCode is fully updated.
Reply
#2
I think you can install on macOS with:
easy_install pip
once that is done, you should be able to install other packages with:
pip install packagename
Reply
#3
Issue report.

Doing it Right Mac
Alternative pyenv(Simple Python Version Management) also work on Mac.
Example how it look on Linux:
# Update pyenv
mint@mint ~ $ pyenv update
 
# Look at what's available
mint@mint ~ $ pyenv install --list
Available versions:
....
3.6.6
  3.6.6rc1
  3.7.0
  3.7-dev
  3.8-dev
....
 
# Update needed
sudo apt-get update
sudo apt-get install libffi-dev
 
# install
mint@mint ~ $ pyenv install 3.7.0
Installing Python-3.7.0...
Installed Python-3.7.0 to /home/mint/.pyenv/versions/3.7.0
 
# Set python and pip to point to 3.7
mint@mint ~ $ pyenv global 3.7.0
mint@mint ~ $ python -V
Python 3.7.0
mint@mint ~ $ pip -V
pip 10.0.1 from /home/mint/.pyenv/versions/3.7.0/lib/python3.7/site-packages/pip (python 3.7)
mint@mint ~ $ 
# Finish
So now python and pip always point to what you set global in this case 3.7.

Quote:I am working through a book to learn python on version 2.7.
Use Python 3.6 or newer not Python 2.7,we try to be clear about this not so much discussion anymore.
Reply
#4
forgot about pyenv. I use it all the time, and just take it for granted.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVED] Requiring help running an old Python script (non Python savvy user) Miletkir 13 5,435 Jan-16-2021, 10:20 PM
Last Post: Miletkir
  OOP hellp (simple class person) onit 4 2,542 Jul-14-2020, 06:54 PM
Last Post: onit
  A file for every person of a list Emmanouil 3 2,309 Aug-29-2019, 07:19 AM
Last Post: perfringo
  Discord Bot - If Person Mentions Role badmuchachob 0 2,202 Jan-30-2019, 06:39 PM
Last Post: badmuchachob
  Installing Homebrew on my mac; non computer-savvy person duongtn34 1 1,882 Oct-23-2018, 09:11 AM
Last Post: Larz60+
  Why Person() takes no arguments dianefly 3 31,000 Oct-22-2018, 04:15 PM
Last Post: dianefly
  Can you tell me where this person got the version of Python that he's using? nelsonkane 8 5,066 Mar-11-2018, 11:10 AM
Last Post: gptura

Forum Jump:

User Panel Messages

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