升级Ubuntu 20.04运行Python2脚本提示no module named git 尝试使用18.04的方法apt install python-git无法安装 添加bionic apt source也无法安装
no module named git
apt install python-git
安装pip2
pip2
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py python2 get-pip.py
手动安装GitPython
GitPython
pip2 install GitPython
问题解决
python - pip2 installation on ubuntu 20.04 - Stack Overflow