如何为 pip - python 2.7 安装 git?

如何为 pip - python 2.7 安装 git?

我的 pip 版本是 20.0.2 来自 /usr/local/lib/python2.7/dist-packages/pip (python 2.7)

我无法安装 git。我在这里缺少什么?

$pip install git
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement git (from versions: none)
ERROR: No matching distribution found for git

答案1

我需要安装

pip install gitpython

相关内容