英文:
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-distutils
和python3-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
英文:
The solution is to use Ubuntu aptdaemon
package that is provided in the Ubuntu repositories:
sudo apt install aptdaemon
sudo apt install python3-aptdaemon
答案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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论