2017-09-24 183 views
0

我試圖通過pip安裝pytautogui,但仍然遇到問題。這是在Mac上。我曾嘗試在python 2.7和3.6.1下運行命令,但沒有成功。嘗試安裝pyautogui時出錯

Complete output from command python setup.py egg_info: 
Traceback (most recent call last): 
    File "<string>", line 1, in <module> 
    File "/private/var/folders/sz/62b931pd5zjbclx2fzpkww1w0000gn/T/pip-build-0vb25t/pyautogui/setup.py", line 6, in <module> 
    version=__import__('pyautogui').__version__, 
    File "pyautogui/__init__.py", line 110, in <module> 
    from . import _pyautogui_osx as platformModule 
    File "pyautogui/_pyautogui_osx.py", line 7, in <module> 
    assert False, "You must first install pyobjc-core and pyobjc: https://pyautogui.readthedocs.io/en/latest/install.html" 
AssertionError: You must first install pyobjc-core and pyobjc: https://pyautogui.readthedocs.io/en/latest/install.html 

我在這裏錯過了什麼,我已經安裝了pyobjc-core,但沒有修復它?這看起來像pyautogui安裝程序的問題?

感謝您的幫助。

回答

1

在問題一樣,你應該:如果你安裝pyobjc的版本

  1. 檢查你的Python版本兼容。
  2. 選擇是否安裝都需要包(pyobjc,pyobjc核)
+0

感謝那些幫助了,罪魁禍首是pyobjc核心,不得不重新安裝它,它解決了這個問題。 – DevZone