事先声明,问题已经解决,本文章为记录尝试过程以及最终解决方案。

本人使用的pycharm

第一次在pycharm中的Settings里尝试安装pycocotools时pycharm报错:

Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed foryour Python interpreter located at 'D:\Anaconda\envs\pytorch\python.exe'.

之后在anaconda软件中使用conda search进行搜索发现没有这个包,第二次上网搜索解决方法,尝试在'D:\Anaconda\envs\pytorch\'路径下打开命令窗口,输入python.exe -m pip install pycocotools -i http://pypi.douban.com/simple --trusted-host pypi.douban.com。(豆瓣国内源),于是出现了新的错误:

Could not build wheels for pycocotools which use PEP 517 and cannot be installed directly

并建议我安装Microsoft Visual C++,由于太大,本人不想安装,于是寻找其他方法。

第三次尝试在anaconda的命令行中输入pip install pycocotools(摆烂试一下)发现与第二次尝试结果相同。

第四次上网搜索发现有人使用conda install pycocotools命令可以下载,试了下发现仍然不行,但anaconda中给出建议可以上网站https://anaconda.org中进行搜索查看,进入网站搜索pycocotools后发现应该是有人上传过这个包

选择第一个搜索结果后,发现下面有可以直接运行的命令

选择了第一个命令进行安装,最终成功。

(个人记录)安装pycocotools库出现Could not build wheels for pycocotools which use PEP 517 and cannot be install相关推荐

  1. 安装pandas-profiling错误:Could not build wheels for _ which use PEP 517 and cannot be installed directly

    我是通过安装visual studio C++ build tools解决: 安装方式参考

  2. 安装opencv时报错:Could not build wheels for opencv-python which use PEP 517 and cannot be installed direc

    一.问题背景 最近写一批程序,需要用到opencv里面的函数,但是导入cv2的时候,新电脑提示没有安装,所以首先安装opencv的库,直接pip install opencv-python,不过报错了 ...

  3. 【错误记录】Mac 中 Python 报错 ( ERROR: Could not build wheels for numpy which use PEP 517 | 问题未解决 | 问题记录 )

    文章目录 一.报错信息 二.解决方案 一.报错信息 首先 , 更新 pip ; 执行如下命令 : /usr/local/bin/python3 -m pip install --upgrade pip ...

  4. 【报错】安装scrapy时Could not build wheels for cryptography which use PEP 517 and cannot be installed direc

    问题: Windows在安装scrapy时候报错 error: Microsoft Visual C++ 14.0 or greater is required. Get it with " ...

  5. 安装paddlex出现“ERROR: Could not build wheels for pycocotools, which is required to install pyproject‘

    问题: 在安装pallex时出现报错 解决: 安装Visual Studio,百度云下载地址参考 https://blog.csdn.net/qq_41101213/article/details/1 ...

  6. 解决安装mmdet报错- ERROR: Could not build wheels for pycocotools, which is required to install pyproject.t

    记录一下自己在安装mmlab中的mmdet库遇到的问题,直接使用pip install mmdet报错如下: ERROR: Could not build wheels for pycocotools ...

  7. 安装pycocotools时遇到ERROR: Could not build wheels for pycocotools which use PEP 517 and cannot be instal

    操作系统:ubuntu18.04.6 最近在安装MMdetection3d时,其中一步需要安装pycocotools,但是直接采用 pip install pycocotools 进行安装时,我遇到了 ...

  8. ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based pro

    安装pycocotools时总是安装不成功?  问题1:ERROR:Could not build wheels for pycocotools, which is required to insta ...

  9. ERROR:Could not build wheels for pycocotools, which is required to install pyproject.toml-based

    我下载paddlex时候出现的问题 利用国内镜像资源下载比较快 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple paddlex 你以为这 ...

最新文章

  1. java数据类型相互转换工具类
  2. 算法导论-MIT笔记
  3. python从入门到精通pdf下载清华大学出版社-python从入门到精通 清华大学出版社...
  4. MinGW 和 MSVC 下,使用 FILE 类型的一个奇怪的问题
  5. oracle遇到无效lob,sql – ORA-22275错误:指定了无效的LOB定位符
  6. C和C++之用extern “C“实现它们之间的互调
  7. [转]国际化: 理解Java平台上的Locale
  8. 区分 JSON 字符串与JSON对象
  9. AMP、HMP、SMP
  10. 云监控中inode使用率监控具体作用是什么
  11. android 8187驱动 win7,8187无线网卡驱动,教您Realtek瑞昱8187无线网卡驱动
  12. navicat下载安装
  13. iOS修改生成的APP名称
  14. 计算机出现故障后,电脑内存出现故障怎么办 电脑内存常见故障解决方法【详解】...
  15. 【Matlab三维路径规划】狼群算法算法三维路径规划【含源码 167期】
  16. 用css实现骰子的六个面(flex布局的学习)
  17. flappy+bird+android源代码,Flappy Bird(安卓版)逆向分析(一)
  18. 安卓中的对称加密,非对称加密,MD5加密的算法
  19. struts2远程代码执行漏洞合集
  20. 基于关联规则的足球比赛数据分析

热门文章

  1. 测试时间不够,项目要如期发布如何保证测试质量
  2. 计算机组老师颁奖词,教研组颁奖词5篇
  3. vray渲染出图尺寸_3DMax渲染出图尺寸怎么设置?
  4. php开发天气可视化,R语言天气可视化应用 | 粉丝日志
  5. python 扩展c extention
  6. p5.js 和 Processing 的恩怨情仇
  7. 大数据薪水大概多少_大数据工程师工资一般多少钱
  8. TaHomA:一套让你在iPad上控制房子,将其变身智能房屋的神奇系统
  9. Nginx系列教材 (五)- 和Tomcat进行负载均衡
  10. 九型人格Enneagram