docker 无法在Poetry上安装Contrast-agent包

ruyhziif  于 2023-05-16  发布在  Docker
关注(0)|答案(1)|浏览(113)

使用poetry install命令安装对比包时出现以下错误:
RuntimeError: Failed to build Contrast C extension. It is necessary for autotools (autoconf, automake) to be installed in order for Contrast to build properly. On lightweight systems such as Alpine, it may be necessary to install linux-headers if they are not available already. Some other systems may require "build essential" packages to be installed.
有人能帮我解决这个问题吗?

dxpyg8gm

dxpyg8gm1#

我能够通过使用下面的命令来解决这个问题,因为我在Ubuntu上运行这个命令,下面的命令为我解决了这个问题。运行这些命令后,我可以在poetry中添加造影剂,然后poetry install成功运行

apt update
apt upgrade -y
apt install linux-libc-dev
apt-get install autoconf -y
apt-get install automake 
apt-get install build-essential -y

相关问题