ERROR: Cannot find command ‘git‘ - do you have ‘git‘ installed and in your PATH
虚拟环境中,在配置coco数据集的API时出现以下错误
(py37) C:\Users\HASEE>pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
Collecting git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
Cloning https://github.com/philferriere/cocoapi.git to c:\users\hasee\appdata\local\temp\pip-req-build-60rcidcx
Running command git clone -q https://github.com/philferriere/cocoapi.git 'C:\Users\HASEE\AppData\Local\Temp\pip-req-build-60rcidcx'
ERROR: Error [WinError 2] 系统找不到指定的文件。 while executing command git clone -q https://github.com/philferriere/cocoapi.git 'C:\Users\HASEE\AppData\Local\Temp\pip-req-build-60rcidcx'
ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH
主要是因为你没有在虚拟环境中安装git这个包,解决方法很简单,只要在你的pycharm中添加git这个库就行了
然后再从终端或者cmd命令环境下输入:
pip install git+https://github.com/gautamchitnis/cocoapi.git@cocodataset-master#subdirectory=PythonAPI
若仍然无法下载,那就是网络问题了,现在下载很多库,感觉都不方便,经常无法访问。
完成后,会有下面提示:
Cloning https://github.com/gautamchitnis/cocoapi.git (to revision cocodataset-master) to c:\users\hasee\appdata\local\temp\pip-req-build-1spsj_qj
Running command git clone -q https://github.com/gautamchitnis/cocoapi.git 'C:\Users\HASEE\AppData\Local\Temp\pip-req-build-1spsj_qj'
Running command git checkout -b cocodataset-master --track origin/cocodataset-master
Branch 'cocodataset-master' set up to track remote branch 'cocodataset-master' from 'origin'.
Switched to a new branch 'cocodataset-master'
Resolved https://github.com/gautamchitnis/cocoapi.git to commit 20291f19c46a8d11935862bc9e449a1b72ec25ed
Building wheels for collected packages: pycocotools
Building wheel for pycocotools (setup.py) ... done
Created wheel for pycocotools: filename=pycocotools-2.0-cp37-cp37m-win_amd64.whl size=80448 sha256=a90734666b5eddd3b89d211565a186d5a222dabe0d4cc9d4f6d81a63003a0963
Stored in directory: C:\Users\HASEE\AppData\Local\Temp\pip-ephem-wheel-cache-hbh2eneq\wheels\6e\c9\59\56484d4d5ac1ab292a452b4c3870277256551505954fc4a1db
Successfully built pycocotools
Installing collected packages: pycocotools
Successfully installed pycocotools-2.0
ERROR: Cannot find command ‘git‘ - do you have ‘git‘ installed and in your PATH相关推荐
- npm ERR! code 128npm ERR! An unknown git error occurrednpm ERR! command git --no-replace-objects l
背景: 在安装vue-element-admin 项目所需依赖时,出现了如下报错信息 npm ERR! code 128 npm ERR! An unknown git error occurred ...
- fatal: not in a git directory Error: Command failed with exit 128: git
arch -arm64 brew install cocoapods 报错 fatal: not in a git directory Error: Command failed with exit ...
- ERROR: Cannot find command ‘git‘ - do you have ‘git‘ installed and in your PATH?
问题描述: 使用git命令时: ERROR: Error [WinError 2] 系统找不到指定的文件. while executing command git clone -q https://g ...
- 已解决ERROR: Cannot find command ‘git’- do you have ‘git’ installed and in your PATH?
已解决ERROR: Cannot find command 'git'- do you have 'git' installed and in your PATH?异常的正确解决方法,亲测有效!!! ...
- brew安装时fatal: not in a git directory Error: Command failed with exit 128: git
使用brew安装node时发生此错误 猜测原因: 应该是homebrew没有找到git路径,因此我们需要配置一下 ps: 查阅资料大多都是直接git绑定usr/local/路径下面的homebrew, ...
- Jenkins - 札记 - 无法连接仓库:Command “git ls-remote -h -- http://git.govmade.cn/shanghai/demo.git HEAD“...
VMware - 目录 Jenkins - 札记 - 无法连接仓库:Command "git ls-remote -h -- http://git.govmade.cn/shanghai/d ...
- Cannot find command ‘git‘ - do you have ‘git‘ installed and in your PATH?
命令提示符下安装"git": D:\PycharmProjects\pythonProject\venv\Scripts>pip install -q git+https:/ ...
- code 128 ....command git --no-replace-objects ls-remote ssh://git@github.com/nhn/raphael.git解决方案
vue-element-admin项目 当安装依赖npm install 时报错 npm ERR! code 128 npm ERR! An unknown git error occurred np ...
- Mac安装 git-lfs 出现 Command failed with exit 128: git
fatal: not in a git directory Error: Command failed with exit 128: git 在 brew install git-lfs 的时候,出现 ...
最新文章
- 【动态规划】矩阵嵌套问题
- [Cocoa, 医疗]Dicom Image Viewer for iPad
- 深度学习框架 通道顺序
- (五)Maven目录结构及常用命令说明
- MLPrimitive文件夹的作用
- 【机器学习】数据不平衡问题都怎么解?
- 鼠标移动时,光标相对于对象的位置
- dp打开思路4:POJ1189 UVA12511 HDU2845 HBCPC K
- 9个提高代码运行效率的小技巧你知道几个?
- linux 环境 安装nginx
- python脚本转二进制_使用此Python脚本在Base94中编码二进制文件
- extends 和super 泛型限定符-上界不存下界不取
- python列表添加字符串_python字符串和列表操作
- php+对象和数组装备_php对象和数组有什么区别
- 井下作业类毕业论文文献有哪些?
- android logo颜色渐变,2018,很多APP的logo渐变了 -- 渐变色教程
- windows应用(vc++2022)MFC基础到实战(1)-基础(1)
- Semantic UI 之 对话框 modal
- OpenCV-Python身份证信息识别
- 新闻资讯系统(论文)
热门文章
- 什么是DNS劫持和DNS污染?
- Unity开发——The associated script can not be loaded.
- L1-038 新世界 (5分)
- 通达OA-今日学习:Office_Anywhere服务已经启动了,但仍打不开页面或很慢,怎么办?
- Win10网络诊断提示:远程计算机或设备将不接受连接 已解决
- ARM寄存器R13/R14/R15
- html制作日历备忘录,vue实现日历备忘录功能
- 【Jetson-Nano】jetson_nano安装环境配置及tensorflow和pytorch的安装
- 智能车电磁传感器检测原理
- Google检索从入门到精通