安装 pip 包时出现了与 setup.py 要求相关的错误。

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

Error in installing pip package with setup.py requirements

问题

我试图在Ubuntu 20.04上安装aptdaemon包,命令如下:pip3 install aptdaemon,但是我遇到了一个错误:

error in setup.cfg: command 'build' has no such option 'i18n'

我已经安装了python3-distutilspython3-distutils-extra

sudo apt install --reinstall python3-distutils
sudo apt install --reinstall python3-distutils-extra

但仍然出现错误。请告诉我如何解决setup.py构建要求中的这个错误。提前感谢。

英文:

I'm trying to install the aptdaemon package on Ubuntu 20.04 as follows: pip3 install aptdaemon but I'm getting an error:

error in setup.cfg: command 'build' has no such option 'i18n'

I have installed both python3-distutils and python3-distutils-extra:

sudo apt install --reinstall python3-distutils
sudo apt install --reinstall python3-distutils-extra

but still the error appears.

Can you please tell me how can I get rid of this error in setup.py build requirements? thanks in advance.

答案1

得分: 1

以下是翻译好的部分:

The solution is to use Ubuntu aptdaemon package that is provided in the Ubuntu repositories:

sudo apt install aptdaemon
sudo apt install python3-aptdaemon

Credit to this answer

英文:

The solution is to use Ubuntu aptdaemon package that is provided in the Ubuntu repositories:

sudo apt install aptdaemon
sudo apt install python3-aptdaemon

Credit to this answer

答案2

得分: 0

打开文件 setup.cfg,查找名为 [build] 的部分,在这个部分内你会找到名为 i18n = 1 的行,删除这行然后保存这些更改,然后再尝试安装

因为错误提示是 i18n = 1

英文:

Open file setup.cfg look for section called [build] and inside this section you will find line called i18n = 1 remove this line then save thie changes then try to install again

because the error suggests that it is i18n = 1

huangapple
  • 本文由 发表于 2023年2月27日 00:35:48
  • 转载请务必保留本文链接:https://go.coder-hub.com/75573439.html
匿名

发表评论

匿名网友

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

确定