Search code examples
pythonpippackage

Error in installing pip package with setup.py requirements


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.


Solution

  • 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