0
我是GitPython的新手。我嘗試成功安裝後gitpython進口混帳,爲什麼每次嘗試導入git時都會顯示此錯誤消息
import git
但它返回此錯誤消息:
/data/data/org.qpython.qpy3/files/bin/qpython.sh "/storage/sdcard0/qpython/scripts/.last_tmp.py" && exit
qpython/scripts/.last_tmp.py" && exit <
Traceback (most recent call last):
File
"/storage/sdcard0/qpython/scripts/.last_tmp.py",
line 1, in <module>
import git
File
"/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/git/__init__.py", line 38, in <module>
from git.config import GitConfigParser #
@NoMove @IgnorePep8
File
"/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/git/config.py", line 25, in <module>
from git.util import LockFile
File
"/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/git/util.py", line 568
return u'<git.Actor "%s <%s>">' % (self.name, self.email)
^
SyntaxError: invalid syntax
1|[email protected]_g:/ $
爲什麼以及如何解決這些。謝謝。
感謝您的回覆。我真的很滿...但是這是否意味着它會在python 2中更好地工作... – Udonse
嗨polku ...我只是使用python 2,它完美的作品..謝謝 – Udonse