“pip install git+https://github.com/XXX/XXX”报错

想安装GitHub中的小程序,结果频繁报错:
(1)ERROR: Command errored out with exit status 128: git clone -q https://github.com…
(2)DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionalit…
(3)报错 Cannot find command ‘git‘ - do you have ‘git‘ installed and in your PATH?..
(4)Could not fetch URL https://pypi.org/simple/selenium/: There was a problem confirming the ssl…
找了很多方法,终于解决,记录下来:
首先针对第(3)条报错,在cmd中输入:


```python
pip install git

结果报错!无果…
接着针对第(2)条报错,在cmd中输入:

conda update --all

解决!接着在cmd中输入:

pip install git

OK!
下面,针对第(1)和第(4)条报错,在下是新手,查了资料,仅供参考:
例如,我想pip install git+https://github.com/xxxx/xxxxx,复制https://github.com/xxxx/xxxxx,进入网页,如下图所示:
“pip install git+https://github.com/XXX/XXX”报错_第1张图片

点击图片上绿色的code,下载code选择Download ZIP格式,保存至自己的电脑F盘(自己随意存)里面。
然后解压,可以看见文件中有setup.py文件,这个就是要安装的小程序。接下来,如图所示:
“pip install git+https://github.com/XXX/XXX”报错_第2张图片
按照图片中红色字体照做,cmd如下图所示,输入命令:

python setup.py install

“pip install git+https://github.com/XXX/XXX”报错_第3张图片

回车,等待,即完成安装。

你可能感兴趣的:(笔记,python,python,github,cmd)