Python git模块安装的问题
我已经尝试用pip/pip3和conda安装git。 在使用pip/pip3时,我在shell中得到以下内容:Python git模块安装的问题,python,git,Python,Git,我已经尝试用pip/pip3和conda安装git。 在使用pip/pip3时,我在shell中得到以下内容: (base) Micheles-MacBook-Air:~ michelegiglioni$ pip install git ERROR: Could not find a version that satisfies the requirement git (from versions:none) ERROR: No matching distribution found for g
(base) Micheles-MacBook-Air:~ michelegiglioni$ pip install git
ERROR: Could not find a version that satisfies the requirement git (from versions:none)
ERROR: No matching distribution found for git
(base) Micheles-MacBook-Air:~ michelegiglioni$ pip3 install git
Collecting git
ERROR: Could not find a version that satisfies the requirement git (from versions: none)
ERROR: No matching distribution found for git
WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.
我还将git更新为最新版本,并重新运行pip install命令,但没有成功。
我还尝试过与康达进行以下交流:
conda install -c conda-forge git
import git
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-99021728f681> in <module>
----> 1 import git
ModuleNotFoundError: No module named 'git'
它显然下载了git,但JupiterLab中的结果仍然是:
conda install -c conda-forge git
import git
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-99021728f681> in <module>
----> 1 import git
ModuleNotFoundError: No module named 'git'
导入git
---------------------------------------------------------------------------
ModuleNotFoundError回溯(上次最近调用)
在里面
---->1进口吉特
ModuleNotFoundError:没有名为“git”的模块
你对我如何继续使用git模块有什么建议吗?
谢谢PyPI官方网站中没有git包允许您执行命令
pip install git
。这就是你的第一个命令失败的原因。可能您尝试使用了错误的包名
如果是您要查找的软件包,请尝试命令pip install gitpython