Skip to content Skip to sidebar Skip to footer

Phyton3 Pip And Pyautogui Install Mac -remove Broken Python

having jumped into java development a year ago, i now struggle myself thru terminal commands and try to get the red line in it. I now want to set up python3 and pyautogui following

Solution 1:

Download proper installer of python 3: Python3

Install Xcode (get it from Xcode) if you don't have it yet.

Point xcode-select to the Xcode Developer directory using the following command:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

Open command line and navigate to python3 directory:

/Library/Frameworks/Python.framework/Versions/3.5/bin

Run:

sudo pip3 install pyobjc-framework-Quartz
sudo pip3 install pyobjc-core
sudo pip3 install pyobjc
pip3 install pyautogui

Try your installation from the command line, type:

python3
import pyautogui

If everything is fine you won't have an import error. I hope it helps.

Post a Comment for "Phyton3 Pip And Pyautogui Install Mac -remove Broken Python"