我正在尝试使用python git fat
安装pip
但是,我在下面收到“无效语法”错误:
我尝试了很多事情,但似乎无法弄清楚。
欣赏任何想法吗?
sudo pip install git-fat --user
--proxy=http://proxy-chain.intel.com:911/
Collecting git-fat Downloading https://files.pythonhosted.org/packages/d9/83/2b8fe278813c4fe32d4eda87a4981f4258da51aaaffa56e769255c95ca40/git-fat-0.5.0.tar.gz
ERROR: Complete output from command python setup.py egg_info:
ERROR: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-o49cc8aj/git-fat/setup.py", line 18, in <module>
from git_fat import __version__
File "/tmp/pip-install-o49cc8aj/git-fat/git_fat/__init__.py", line 1, in <module>
from .git_fat import * # noqa
File "/tmp/pip-install-o49cc8aj/git-fat/git_fat/git_fat.py", line 1093
if len(sys.argv) > 1 and sys.argv[1] in [c + 'version' for c in '', '-', '--']:
^
SyntaxError: invalid syntax
---------------------------------------- ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-o49cc8aj/git-fat/