how to properly remove python2 after pip installed it



  • Hello,

    board: omega2+
    firmware: 0.3.4 b259

    i upgraded my omega2+ => OK.
    python was not installed anymore => OK .
    i installed it using opkg install python3 => OK
    after that i noticed that pip was not here neither.
    I unfortunately used opkg install python-pip INSTEAD of opkg install python3-pip

    I saw it installing python-base ... python-light, etc ... strange.
    I realised that it had installed python2
    So then i wanted to revert so i did opkg remove python-pip
    =>ok : 'Removing package python-pip from ...'

    then i did opkg remove python
    Then Omega says:

    No packages removed.
    Collected errors:
     * print_dependents_warning: Package python is depended upon by packages:
     * print_dependents_warning:    python-setuptools
     * print_dependents_warning: These might cease to work if package python is removed.
    
     * print_dependents_warning: Force removal of this package with --force-depends.
     * print_dependents_warning: Force removal of this package and its dependents
     * print_dependents_warning: with --force-removal-of-dependent-packages.
    

    I think that pip 2 is gone already but i still see directories and packages for python2.

    The question is: how to properly remove python2 and its components and keep python3 and pip 3
    i think about doing opkg remove python then opkg remove python3 to get all out then re install using opkg install python3 then opkg install python3-pip
    What do you think ?

    Thank you for your help !



Looks like your connection to Community was lost, please wait while we try to reconnect.