错误:命令'x86_64-linux-gnu-gcc'失败,退出状态为1,错误:mysqlclient的构建轮失败

问题描述 投票:-2回答:1

有很多错误。

  /usr/bin/ld: cannot find -lssl
  /usr/bin/ld: cannot find -lcrypto
  collect2: error: ld returned 1 exit status
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for mysqlclient


  code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, 
  '"'"'exec'"'"'))' install --record /tmp/pip-record-0p2809_2/install-record.txt --single- 
  version-externally-managed --compile Check the logs for full command output.

我尝试了python-dev以及python3-dev。并更改了mysqlclient版本,但没有发生相同的问题。这些代码在docker文件中。请帮助。

python mysql python-3.x docker mysql-python
1个回答
0
投票

基于前两行,您缺少libssl-dev系统软件包;在您的dockerfile中尝试apt-get install -y libssl-dev

© www.soinside.com 2019 - 2024. All rights reserved.