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

python 在windows系统上安装pycocotools,lap是出现无法安装的情况,报错如下:

原因是缺少C++的编译工具,并且pycocotools需要安装windows版本。

 解决步骤:

1、下载BuildTools

下载地址:BuildTools

2、安装选择C++

3、重新安装依赖,就能成功安装

4、安装windows版本的pycocotools

pip install  -i https://pypi.tuna.tsinghua.edu.cn/simple pycocotools-windows

  • 4
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 5
    评论
Python链接MySQL驱动包,安装之后可以使用Python语言链接MySQL进行数据库操作 # mysqlclient [![Build Status](https://secure.travis-ci.org/PyMySQL/mysqlclient-python.png)](http://travis-ci.org/PyMySQL/mysqlclient-python) This is a fork of [MySQLdb1](https://github.com/farcepest/MySQLdb1). This project adds Python 3 support and bug fixes. I hope this fork is merged back to MySQLdb1 like distribute was merged back to setuptools. ## Install ### Prerequisites You may need to install the Python and MySQL development headers and libraries like so: `sudo apt-get install python-dev libmysqlclient-dev` # Debian / Ubuntu `sudo yum install python-devel mysql-devel` # Red Hat / CentOS On Windows, there are binary wheel you can install without MySQLConnector/C or MSVC. #### Note on Python 3 : if you are using python3 then you need to install python3-dev using the following command : `sudo apt-get install python3-dev` # debian / Ubuntu `sudo yum install python3-devel ` # Red Hat / CentOS `brew install mysql-connector-c` # macOS (Homebrew) ### Install from PyPI `pip install mysqlclient` NOTE: Wheels for Windows may be not released with source package. You should pin version in your `requirements.txt` to avoid trying to install newest source package. ### Install from source 1. Download source by `git clone` or [zipfile](https://github.com/PyMySQL/mysqlclient-python/archive/master.zip). 2. Customize `site.cfg` 3. `python setup.py install` ### Documentation Documentation is hosted on [Read The Docs](https://mysqlclient.readthedocs.io/)
引用: "ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects"是一个安装包依赖问题。这个错误表示无法为pycocotools构建wheel文件,而这个文件是安装pyproject.toml-based项目所必需的。 引用: "Failed building wheel for cartopy Failed to build cartopy ERROR: Could not build wheels for cartopy, which is required to install pyproject.toml-based projects"这个错误也是类似的情况,但出现在安装cartopy时。 引用: "lanms_neo-1.0.2-cp38-cp38-win_amd64.whl 免编译直装版 error: Microsoft Visual C 14.0 or greater ...ERROR: Could not build wheels for lanms-neo, which is required to install pyproject.toml-based projects"这个错误则是在安装lanms-neo时出现的。 根据这些引用,你遇到的问题是"ERROR: Could not build wheels for polygon3, which is required to install pyproject.toml-based projects"。这个错误表示无法为polygon3构建wheel文件,而这个文件是安装pyproject.toml-based项目所必需的。你可以尝试以下解决方法来解决这个问题: 1. 确保你已经正确安装了所需的依赖项。请检查你的环境是否配置正确,并且所有必需的软件和库都已经安装。 2. 确认你正在使用适用于你的操作系统和Python版本的正确版本的polygon3安装包。有时候,错误可能是由于版本不匹配或不兼容导致的。 3. 如果可能的话,尝试使用预编译的免编译版本的polygon3安装包。这样可以避免构建wheel文件的过程,从而减少了出错的可能性。 4. 如果以上方法都没有解决问题,你可以尝试手动构建polygon3的wheel文件。具体的步骤可以参考polygon3的官方文档或相关资源。 总之,问题的根本原因是无法构建polygon3的wheel文件,导致无法安装pyproject.toml-based项目。你可以通过检查环境配置、确认安装包版本、使用预编译版本或手动构建wheel文件来解决这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [解决:Could not build wheels for pycocotools, which is required to install pyproject.toml-based](https://blog.csdn.net/qq_55542491/article/details/130827275)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [python安装第三方库报错(Failed building wheel for 库名)](https://blog.csdn.net/qq_40434461/article/details/128297846)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [lanms-neo-1.0.2-cp38-cp38-win-amd64.whl](https://download.csdn.net/download/sayonekui/87429886)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

程序猿老罗

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值