Python 3.5.1:无法使用pip安装gitpython包
我想从Python脚本发出Git命令Python 3.5.1:无法使用pip安装gitpython包,python,python-3.x,pip,gitpython,Python,Python 3.x,Pip,Gitpython,我想从Python脚本发出Git命令Git pull,从Git获取文件并更新本地文件夹。为此,我尝试在我的机器上安装gitpython包 使用的Python版本是3.5.1 操作系统是Winoows 10 以下两个命令给出了相同的错误 python -m pip install gitpython 或 错误: Collecting gitpython Could not find a version that satisfies the requirement gitpython (fro
Git pull
,从Git获取文件并更新本地文件夹。为此,我尝试在我的机器上安装gitpython
包
使用的Python版本是3.5.1
操作系统是Winoows 10
以下两个命令给出了相同的错误
python -m pip install gitpython
或
错误:
Collecting gitpython
Could not find a version that satisfies the requirement gitpython (from versions: )
No matching distribution found for gitpython
为什么我会犯这个错误?如何解决这个问题
添加此问题的更新:
实际上,我在尝试安装任何软件包(
gitpython
或cx\u Oracle
或sci-kit
)时遇到上述错误。我会确保您有一个良好的最新版本的pip。仔细检查一下。
然后再次尝试安装GitPython,确保在运行命令时具有所需的权限。python--version是否真的显示了3.5.1?是的。它显示了Python 3.5.1您可以尝试执行
Python-mpip安装吗https://files.pythonhosted.org/packages/20/8c/4543981439d23c4ff65b2e62dddd767ebc84a8e664a9b67e840d1e2730d3/GitPython-3.0.5-py3-none-any.whl
?我试了一下,发现了这个错误。“ssl.SSLError:[ssl:CERTIFICATE\u VERIFY\u FAILED]CERTIFICATE VERIFY FAILED(\u ssl.c:645)”此命令的作用是什么?此命令尝试直接下载并安装GitPython
whl文件(通常pip
将检查pypi,然后自动选择一个文件)。除了您在问题中发布的输出外,您是否还收到了相同的SSL
错误或任何其他输出?
Collecting gitpython
Could not find a version that satisfies the requirement gitpython (from versions: )
No matching distribution found for gitpython