Unable to install Contrast-agent package on Poetry.

huangapple go评论68阅读模式
英文:

Unable to install Contrast-agent package on Poetry

问题

在使用poetry install命令安装Contrast包时,出现以下错误:

“运行时错误:无法构建Contrast C扩展。
为了Contrast能够正确构建,需要安装自动工具(autoconf、automake)。在像Alpine这样的轻量级系统上,如果它们尚未可用,可能需要安装linux-headers。其他一些系统可能需要安装“构建基本”包。”

有人可以帮我解决这个问题吗?

英文:

Getting the below error when I install contrast package using poetry install command:

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.

Can someone help me how to fix this issue ?

答案1

得分: 0

我能够通过使用以下命令来解决这个问题,因为我在Ubuntu上运行这个命令,以下命令为我解决了这个问题。一旦运行了这些命令,我就能够在poetry中添加contrast-agent,然后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
英文:

I was able to fix this issue by using the below commands since I was running this on Ubuntu the below commands fixed the issue for me. Once these commands were run I was able to add contrast-agent in poetry and then poetry install ran successfully for me

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

huangapple
  • 本文由 发表于 2023年5月11日 12:16:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/76224121.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定