Failed to build mysqlclient

embedded/2025/2/12 19:56:34/

​​​​​​​Links for mysqlclient

在上述链接下载对应版本即可。

 Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: mysqlclient
  Building wheel for mysqlclient (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for mysqlclient (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [41 lines of output]
      # Options for building extension module:
        library_dirs: ['C:/mariadb-connector\\lib\\mariadb', 'C:/mariadb-connector\\lib']
        libraries: ['kernel32', 'advapi32', 'wsock32', 'shlwapi', 'Ws2_32', 'crypt32', 'secur32', 'bcrypt', 'mariadbclient']
        extra_link_args: ['/MANIFEST']
        include_dirs: ['C:/mariadb-connector\\include\\mariadb', 'C:/mariadb-connector\\include\\mysql', 'C:/mariadb-connector\\include']
        extra_objects: []
        define_macros: [('version_info', (2, 2, 7, 'final', 0)), ('__version__', '2.2.7')]
      running bdist_wheel
      running build
      running build_py
      creating build\lib.win-amd64-cpython-38\MySQLdb
      copying src\MySQLdb\connections.py -> build\lib.win-amd64-cpython-38\MySQLdb
      copying src\MySQLdb\converters.py -> build\lib.win-amd64-cpython-38\MySQLdb
      copying src\MySQLdb\cursors.py -> build\lib.win-amd64-cpython-38\MySQLdb
      copying src\MySQLdb\release.py -> build\lib.win-amd64-cpython-38\MySQLdb
      copying src\MySQLdb\times.py -> build\lib.win-amd64-cpython-38\MySQLdb
      copying src\MySQLdb\_exceptions.py -> build\lib.win-amd64-cpython-38\MySQLdb
      copying src\MySQLdb\__init__.py -> build\lib.win-amd64-cpython-38\MySQLdb
      creating build\lib.win-amd64-cpython-38\MySQLdb\constants
      copying src\MySQLdb\constants\CLIENT.py -> build\lib.win-amd64-cpython-38\MySQLdb\constants
      copying src\MySQLdb\constants\CR.py -> build\lib.win-amd64-cpython-38\MySQLdb\constants
      copying src\MySQLdb\constants\ER.py -> build\lib.win-amd64-cpython-38\MySQLdb\constants
      copying src\MySQLdb\constants\FIELD_TYPE.py -> build\lib.win-amd64-cpython-38\MySQLdb\constants
      copying src\MySQLdb\constants\FLAG.py -> build\lib.win-amd64-cpython-38\MySQLdb\constants
      copying src\MySQLdb\constants\__init__.py -> build\lib.win-amd64-cpython-38\MySQLdb\constants
      running egg_info
      writing src\mysqlclient.egg-info\PKG-INFO
      writing dependency_links to src\mysqlclient.egg-info\dependency_links.txt
      writing top-level names to src\mysqlclient.egg-info\top_level.txt
      reading manifest file 'src\mysqlclient.egg-info\SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      adding license file 'LICENSE'
      writing manifest file 'src\mysqlclient.egg-info\SOURCES.txt'
      copying src\MySQLdb\_mysql.c -> build\lib.win-amd64-cpython-38\MySQLdb
      running build_ext
      building 'MySQLdb._mysql' extension
      creating build\temp.win-amd64-cpython-38\Release\src\MySQLdb
      "E:\ruanjian\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD "-Dversion_info=(2, 2, 7, 'final', 0
)" -D__version__=2.2.7 -IC:/mariadb-connector\include\mariadb -IC:/mariadb-connector\include\mysql -IC:/mariadb-connector\include -IE:\ruanjian\anaconda\instal_place\envs\tryon_sys
\include -IE:\ruanjian\anaconda\instal_place\envs\tryon_sys\Include "-IE:\ruanjian\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include" "-IE:\ruanjian\Microsof
t Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\ATLMFC\include" "-IE:\ruanjian\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Wi
ndows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\share
d" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcsrc/MySQLdb/_mysql.c /Fobuild\temp.win-amd64-cpython-38\Release\src/MySQLdb/_mysql.obj
      _mysql.c
      src/MySQLdb/_mysql.c(29): fatal error C1083: 无法打开包括文件: “mysql.h”: No such file or directory
      error: command 'E:\\ruanjian\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for mysqlclient
Failed to build mysqlclient
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (mysqlclient)


http://www.ppmy.cn/embedded/161676.html

相关文章

制药行业 BI 可视化数据分析方案

一、行业背景 随着医药行业数字化转型的深入,企业积累了海量的数据,包括销售数据、生产数据、研发数据、市场数据等。如何利用这些数据,挖掘其价值,为企业决策提供支持,成为医药企业面临的重大挑战。在当今竞争激烈的…

阿里 Java 岗个人面经分享(技术三面 + 技术 HR 面):Java 基础 +Spring+JVM+ 并发编程 + 算法 + 缓存

技术一面 20 分钟 1、自我介绍 说了很多遍了,很流畅捡重点介绍完。 2、问我数据结构算法好不好 挺好的(其实心还是有点虚,不过最近刷了很多题也只能壮着胆子充胖子了) 3、找到单链表的三等分点,如果单链表是有环的…

Hyperledger Fabric 入门笔记(十七)Fabric V2.5 测试网络部署补充 - 手动为已加入通道的组织增加Peer节点

文章目录 一、手动为已加入通道的组织增加Peer节点1.1. 准备工作1.2. 流程1.2.1. 为新增Peer节点生成加密材料1.2.2. 启动新增的Peer节点1.2.3. 将新增Peer节点加入现有通道 一、手动为已加入通道的组织增加Peer节点 1.1. 准备工作 本节通过向已加入应用通道的组织Org1增加Pe…

HTML 左右联动高亮示例

HTML 左右联动高亮示例 <!DOCTYPE html> <html lang"en"> <head><meta charset"UTF-8"><meta name"viewport" content"widthdevice-width, initial-scale1.0"><title>左右联动高亮示例</titl…

【C/C++】每日温度 [ 栈的应用 ] 蓝桥杯/ACM备赛

数据结构考点&#xff1a;栈 题目描述&#xff1a; 给定一个整数数组 temperatures &#xff0c;表示每天的温度&#xff0c;返回一个数组 answer &#xff0c;其中 answer[i] 是指对于第 i 天&#xff0c;下一个更高温度出现在几天后。如果气温在这之后都不会升高&#xff0…

LS-MDMTSP:粒子群优化算法PSO求解大规模多仓库多旅行商问题(LS-MDMTSP),MATLAB代码

一、问题定义 大规模多仓库多旅行商问题&#xff08;Large - Scale Multi - Depot Multi - Traveling Salesman Problem&#xff0c;简称 LS - MDMTSP&#xff09;是在经典旅行商问题基础上拓展而来的复杂组合优化问题。与单仓库情形不同&#xff0c;该问题设定了多个仓库&…

【设计模式】【行为型模式】命令模式(Command)

&#x1f44b;hi&#xff0c;我不是一名外包公司的员工&#xff0c;也不会偷吃茶水间的零食&#xff0c;我的梦想是能写高端CRUD &#x1f525; 2025本人正在沉淀中… 博客更新速度 &#x1f4eb; 欢迎V&#xff1a; flzjcsg2&#xff0c;我们共同讨论Java深渊的奥秘 &#x1f…

React(4)

要求&#xff1a; 1、获取输入框值 2、点击按钮将数据写入数组中&#xff08;前端实现不通过接口&#xff09; 3、发送成功后清空输入框以及聚焦 实现&#xff1a; 设置一个变量收集输入框数据使用useState方法 const [inputV,setInputV]useState() 输入框进行绑定输入值…