使用自制软件安装时出现Python错误

时间:2015-08-27 15:44:38

标签: python homebrew

您好我使用“homebrew install python”安装了python。 已经运行的脚本开始抛出错误。

Traceback (most recent call last):
  File "TestConnection.py", line 1, in <module>
    from TextUpdater import TextUpdater
  File "/Users/gepaul/code/external-tools/tools/Scripts/TextUpdater.py", line 1, in <module>
    from GSHelper import GSHelper
  File "/Users/gepaul/code/external-tools/tools/Scripts/GSHelper.py", line 2, in <module>
    import gspread
  File "/Library/Python/2.7/site-packages/gspread/__init__.py", line 21, in <module>
    from .client import Client, login, authorize
  File "/Library/Python/2.7/site-packages/gspread/client.py", line 19, in <module>
    from .httpsession import HTTPSession, HTTPError
  File "/Library/Python/2.7/site-packages/gspread/httpsession.py", line 16, in <module>
    from http import client
ImportError: cannot import name client

任何想法为什么会这样? Python版本是Python 2.7.6

0 个答案:

没有答案