How to install home-brew from a python script? #2
Replies: 4 comments 9 replies
-
What problem are you trying to solve, that "run Homebrew install script from Python as root" is the (otherwise bizarre) answer? |
Beta Was this translation helpful? Give feedback.
-
It needs sudo access but not all of it should be run as an admin. You need to somehow make it input sudo credentials while running, or (the better option) just reproduce what the script does in python if you need to setup homebrew with python. |
Beta Was this translation helpful? Give feedback.
-
You can set |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for trying to help me. If I run it as admin, it says "Don't run this as root!" If I run it as non-admin, it says "Need sudo access on macOS" It is like French administration!!! When you do A, they tell you "don't do A, do B" This is my Python script:
This is the source code of bash script:
This is the output:
As you can see, they all failed!!!! Whatever I do!!! |
Beta Was this translation helpful? Give feedback.
-
Environment
Python 3.7
Mac OS Catalina 10.15
Problem
This makes me crazy!
I need to install home-brew from my python script:
When I run:
I get this error output:
When I run the command as Admin:
here is Install.sh source code:
I get this error output:
So How can we install home-brew from a python script?
If I run it as admin, it says "Don't run this as root!"
If I run it as non-admin, it says "Need sudo access on macOS"
Beta Was this translation helpful? Give feedback.
All reactions