当前位置:论坛首页 > Linux面板 > 讨论

【待反馈】python项目 mysql 依赖一直安装失败

发表在 Linux面板2024-2-1 11:12 [复制链接] 6 409

Collecting mysqlclient==2.* (from -r requirements.txt (line 2))
  Using cached mysqlclient-2.2.1.tar.gz (89 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1

错误也很明显 一直到这里就不行  根据网上的操作  yum install python3-devel mysql-devel pkgconfig   安装的是python2.7的  但是我虚拟环境用的3.10的   最主要 我现在没办法source 到虚拟环境中  


使用道具 举报 只看该作者 回复
发表于 2024-2-1 11:49:12 | 显示全部楼层
您好,您的虚拟环境的pip路径发下
使用道具 举报 回复 支持 反对
发表于 2024-2-1 11:50:34 | 显示全部楼层
大炮运维V587 发表于 2024-2-1 11:49
您好,您的虚拟环境的pip路径发下

/www/server/pyporject_evn/Archery-master_venv/bin   你要的是这路径吗?
使用道具 举报 回复 支持 反对
发表于 2024-2-1 11:51:42 | 显示全部楼层
大炮运维V587 发表于 2024-2-1 11:49
您好,您的虚拟环境的pip路径发下

/www/server/pyporject_evn/Archery-master_venv/bin/pip3 install -r requirements.txt
使用道具 举报 回复 支持 反对
发表于 2024-2-1 11:53:17 | 显示全部楼层
大炮运维V587 发表于 2024-2-1 11:49
您好,您的虚拟环境的pip路径发下

你们就放到txt 文本里面   mysqlclient==2.*   然后安装一下依赖  我用的是django框架  手动安装依赖   这个问题一直都没解决  昨天到现在  
使用道具 举报 回复 支持 反对
发表于 2024-2-1 13:37:23 | 显示全部楼层
大炮运维V587 发表于 2024-2-1 11:49
您好,您的虚拟环境的pip路径发下

      Trying pkg-config --exists mysqlclient
      Command 'pkg-config --exists mysqlclient' returned non-zero exit status 1.
      Trying pkg-config --exists mariadb
      Command 'pkg-config --exists mariadb' returned non-zero exit status 1.
      Trying pkg-config --exists libmariadb
      Command 'pkg-config --exists libmariadb' returned non-zero exit status 1.
      Traceback (most recent call last):

你好 这是安装的时候提示的错误
使用道具 举报 回复 支持 反对
发表于 2024-2-1 13:57:37 | 显示全部楼层
请问下 如何在python 虚拟环境中 yum 我现在想在虚拟环境中 yum install python3.10 mysql-devel   但是都是安装到线上  Command 'pkg-config --exists mariadb' returned non-zero exit status 1.
      Trying pkg-config --exists libmariadb   这个mariadb已经安装 还是一直提示我  
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表