Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include macOS install instruction #5

Closed
dimirey opened this issue Jan 27, 2019 · 7 comments
Closed

include macOS install instruction #5

dimirey opened this issue Jan 27, 2019 · 7 comments

Comments

@dimirey
Copy link

dimirey commented Jan 27, 2019

Would it be possible to include macOS install instruction?

Thanks

@drov0
Copy link
Owner

drov0 commented Jan 28, 2019

Hello,

I do not have a mac but I'll try to get my hands on one to add them :)

@kraftydevil
Copy link

Any word on adding mac installs?

There are ways to install apt-get on a mac, but it's not recommended to use it alongside an existing package manager. I'm already using Homebrew for quite a few things.

I'd really like to use this.

@drov0
Copy link
Owner

drov0 commented Jun 30, 2019

Alright I'm get to work on this, I'll add the instructions today or tomorrow.

@drov0
Copy link
Owner

drov0 commented Jun 30, 2019

Actually I still don't have a macos environment, but I can definitely guide you through the install @kraftydevil

You need those components :

cv2 (opencv) :

https://medium.com/@nuwanprabhath/installing-opencv-in-macos-high-sierra-for-python-3-89c79f0a246a

Looks like brew install opencv works

pyautogui :

As per the documentation :
"OS X needs the pyobjc-core and pyobjc module installed in that order"

So it's an easy
pip3 install -U pyobjc-core
pip3 install -U pyobjc

Also note that if you are using mojave you may need to change your config : asweigart/pyautogui#247

"Not a pyautogui user, but on Mojave, there's a new security feature where you must explicitly allow applications to use your mouse/keyboard. Have a look in Security Preferences > Security & Privacy > Privacy > Accessibility - you might have to allow your terminal application in the list."

Once you have those try

pip3 install -r requirements.txt

and see if you have errors. If this worked, please report back so I can update the README

@kraftydevil
Copy link

No install errors 👍- using 10.13.6 (High Sierra).

Install was as you mentioned:

brew install opencv
pip3 install -U pyobjc-core
pip3 install -U pyobjc
git clone https://github.com/drov0/python-imagesearch.git
cd python-imagesearch
pip3 install -r requirements.txt

I will test with one of the examples and report back.

@kraftydevil
Copy link

yep, the first two examples are working 👍. Thanks for guiding me to it.

@drov0
Copy link
Owner

drov0 commented Jul 1, 2019

Awesome, thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants