英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论